Answers.Body: <p>From what I understand CiviMember Role sync and CiviGroup Role sync auto-mapping - are evaluated at the time the User logs in. </p>
  
  <p>Login -> is user in a specific Group -> ah yes -> so assign role x</p>
  
  <p>So there really is no need to hit the sync button - I don't think; all is well on login.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-12T21:53:00.210Z
Answers.Text: Thanks KarinG. I can see that. CiviMember Role sync can be configured to sync when user logs in/out, during cron run, or when membership is updated. Because the individual group change is synced right away, without the user logging in/out, I expected the bulk group changes to also sync right away as well since there is no "when to sync" type of configuration for CiviGroup Roles sync.
Answers.UserDisplayName: The Amateur
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-12T21:37:17.050Z
Answers.LastActivityDate: 2017-03-12T21:37:17.050Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>Using CiviCRM 4.7.17 with Drupal 7.54</p>
  
  <p>CiviGroup Roles sync adds and removes Drupal users from Drupal roles when changes to CiviGroup groups are done one Contact at a time from the groups tab for the Contact. So the sync is set up correctly.</p>
  
  <p>But when I add or remove Contacts to/from CiviGroup groups in bulk from a list of Contacts, the changes are not synced to the Drupal roles.</p>
  
  <p>These are NOT Smart groups by the way.</p>
  
  <p>Am I missing something? How can I do bulk add/remove Contacts in Civi and have the Drupal roles synced accordingly?</p>
  
  <p>Thanks for any suggestions.</p>
  
Tags: <drupal><groups><roles>
Title: Does CiviGroup Roles Sync work with bulk changes to groups?
ThreadText: # Does CiviGroup Roles Sync work with bulk changes to groups?
  
  (Asked by: username_0 on 2017-03-12)
  
  Using CiviCRM 4.7.17 with Drupal 7.54
  
  CiviGroup Roles sync adds and removes Drupal users from Drupal roles when changes to CiviGroup groups are done one Contact at a time from the groups tab for the Contact. So the sync is set up correctly.
  
  But when I add or remove Contacts to/from CiviGroup groups in bulk from a list of Contacts, the changes are not synced to the Drupal roles.
  
  These are NOT Smart groups by the way.
  
  Am I missing something? How can I do bulk add/remove Contacts in Civi and have the Drupal roles synced accordingly?
  
  Thanks for any suggestions.
  
  **Tags:** drupal, groups, roles
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-03-12. Score: 3
  
  From what I understand CiviMember Role sync and CiviGroup Role sync auto-mapping - are evaluated at the time the User logs in.
  
  Login -> is user in a specific Group -> ah yes -> so assign role x
  
  So there really is no need to hit the sync button - I don't think; all is well on login.
  
  > **Comments:**
  > **username_0**: Thanks username_1. I can see that. CiviMember Role sync can be configured to sync when user logs in/out, during cron run, or when membership is updated. Because the individual group change is synced right away, without the user logging in/out, I expected the bulk group changes to also sync right away as well since there is no "when to sync" type of configuration for CiviGroup Roles sync.  
  
  ---
  
  