CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Using CiviGroup Roles Sync
Pages: [1]

Author Topic: Using CiviGroup Roles Sync  (Read 2615 times)

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Using CiviGroup Roles Sync
July 23, 2009, 04:43:16 am
Good afternoon :)

I'm trying to suss out CiviGroup Roles Sync - I've activated the module and set up some associations, yet I can't seem to find where/when the sync takes place. For example I've set up the association:

Head of Network (Drupal Role) -> Head of Network (Civi Group)

But all of those users with HoN Role already in the system (around 50) do not appear in the HoN Group. I guessed this was because there was nothing to trigger the association so I went to a user in Drupal and added them to the HoN Role, yet they're still not in the Group.

I then added someone to the Group, and VOILA! They have the Role of HoN. So, is this a one way sync? I understood from the readme that it was two way but it doesn't appear to work from the drupal side. Also - is there any way to run the associations on exisiting users with roles already assigned so that they join the group?

Finally is there any documentation on this module other than the readme file? I searched thoroughly and couldn't find it even mentioned in the documentation wiki and very little here on the forum. I would be happy to try and put this up should I actually work out exactly how it works! :)

Thanks guys,

Adam

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using CiviGroup Roles Sync
July 23, 2009, 08:11:22 am

hey adam:

So adding a role / creating a user should trigger the association. I checked the code and it does seem to be a 2 way sync.

u can check the code here: drupal/modules/civicrm_group_roles/civicrm_group_roles.module

and instrument the function civicrm_group_roles_user to see why things dont work as advertised

Would be great if you can document it once you've figured out how things work

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Using CiviGroup Roles Sync
October 16, 2009, 02:53:00 pm
Just in case it helps others, and in case you missed this - I did first time round - but the update of the role for the user only occurs when that user logs in.

However my testing is showing that when the role is added by synch it is overwriting existing roles rather than preserving them.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

sykong

  • Guest
Re: Using CiviGroup Roles Sync
October 17, 2009, 05:51:21 pm
I suppose it should be similar to CiviMember Roles Sync?

Unlike CiviMember Roles sync, CiviGroup Roles Sync is missing configure and manual sync options.

(I should also clarify that I had an error when I first tried the enable CiviGroup Roles Sync module.. on second try, the table already exists... so I'm can't reproduce the same error message)
« Last Edit: October 17, 2009, 05:58:31 pm by sykong »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Using CiviGroup Roles Sync

This forum was archived on 2017-11-26.