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) »
  • group sync doesn't catch members of child groups
Pages: [1]

Author Topic: group sync doesn't catch members of child groups  (Read 2651 times)

janamills

  • Guest
group sync doesn't catch members of child groups
September 08, 2009, 03:11:19 am
I am trying to do a sync from a civi group to a drupal role.

Drupal: Project Manager <--> Civi: Project Managers

But the civigroup has lots of children (all the projects!) but the sync doesnt seem to grab users when they are members of the project managers civi group via a child rather than straight into the parent group.

Is this how it's meant to work?


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: group sync doesn't catch members of child groups
September 08, 2009, 04:04:15 am
I would think so - each Child Group is a Group - and the Parent Group is a Group - and sounds like you are telling it to synch the parent group - which is exactly what it will do.

Are you wanting the contacts in the child groups to have the same role as the contacts in the parent group? Can't you just create another group of all such contacts and synch off that one?
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

janamills

  • Guest
Re: group sync doesn't catch members of child groups
September 08, 2009, 05:10:25 am
Hi peter,

I definitely could just stick all those people into another group. but especially as I am going to pass this off to an administrator I would rather keep it nice and simple for people to use. Here is my use case maybe there is another work around.

just in case here is the use case: I am using OG sync and basically want the managers of the OG groups to be assigned to a certain drupal role so that i can assign permissions. It's great cos OG sync automatically creates a civi group for the administrators of each og group. it would be great if i could just go into each of those civi groups and make the "project managers" group the parent and job done. easy to teach as well. going in and making a new group is a bit of a pain but not the end of the world, just wondered if there was a way really!

thanks for your help!

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: group sync doesn't catch members of child groups
September 08, 2009, 06:35:07 am

parent child groups are essentially smart groups in CiviCRM (and computed on demand). Smart groups are not synched with drupal roles.

A patch to civicrm_group_roles to do so would be great and highly appreciated. its a bit hard since u dont really know how someone can potentially get added to a smart group

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

janamills

  • Guest
Re: group sync doesn't catch members of child groups
September 08, 2009, 07:31:50 am
oic. starts to make a bit of sense now. what if something ran on cron?

jana

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: group sync doesn't catch members of child groups
September 08, 2009, 08:00:17 am

yes, i suspect a cron based solution would be the easiest (though time delayed)

wanna investigate and submit a patch

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

janamills

  • Guest
Re: group sync doesn't catch members of child groups
September 10, 2009, 02:37:15 am
it might be a while till i get round to it, its not a high priority at the mo but will get onto it later in the year i hope.

j

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • group sync doesn't catch members of child groups

This forum was archived on 2017-11-26.