Answers.Body: <p>One solution would be to rejig your roles so that the outcome you need can be delivered by letting Members have one Role and people in the Group have another Role. It seems like a 'cumulative' approach to permissions and roles could work for you.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-19T19:45:06.037Z
Answers.LastActivityDate: 2015-12-19T19:45:06.037Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I'm looking at a scenario where adding a contact to a group gives them a new Drupal role, but I also want to remove that role if a membership (which is part of a separate workflow) expires. Would that work using the two sync modules, or would the group/role sync simply re-apply the role when the user next logs in?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-17T17:55:09.373Z
Comments.Text: So your system wouldn't cope with the member who is in the group having both roles?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-19T11:04:40.917Z
Comments.Text: I think you may have it there @petednz - thanks.
Comments.UserDisplayName: Graham
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-19T19:45:23.973Z
Comments.Text: i will add as answer then
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-18T00:39:25.860Z
Comments.Text: care to accept the below?
Comments.UserDisplayName: petednz - fuzion
Tags: <drupal><civimember><groups><roles>
Title: group role sync and membership role sync - does one take priority over the other?
ThreadText: # group role sync and membership role sync - does one take priority over the other?
  
  (Asked by: username_0 on 2015-12-17)
  
  I'm looking at a scenario where adding a contact to a group gives them a new Drupal role, but I also want to remove that role if a membership (which is part of a separate workflow) expires. Would that work using the two sync modules, or would the group/role sync simply re-apply the role when the user next logs in?
  
  **Tags:** drupal, civimember, groups, roles
  
  > **Comments:**
  > **username_1**: So your system wouldn't cope with the member who is in the group having both roles?  
  > **username_0**: I think you may have it there @username_1 - thanks.  
  > **username_1**: i will add as answer then  
  > **username_1**: care to accept the below?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-12-19. Score: 2 | Accepted answer
  
  One solution would be to rejig your roles so that the outcome you need can be delivered by letting Members have one Role and people in the Group have another Role. It seems like a 'cumulative' approach to permissions and roles could work for you.
  
  
  ---
  
  