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) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Group sync Drush implementation (For Smart group -> ACL group)
Pages: [1]

Author Topic: Group sync Drush implementation (For Smart group -> ACL group)  (Read 430 times)

guruevi

  • I’m new here
  • *
  • Posts: 12
  • Karma: 2
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: MariaDB
  • PHP version: 4.5
Group sync Drush implementation (For Smart group -> ACL group)
September 15, 2014, 04:46:23 pm
I wrote a small script for Drush that can sync and merge any number of groups. It also handles Smart groups (as a source obviously).

AFAIK it's (at this point) not yet possible to use Smart groups for ACL. This alleviates that problem although it's a bit clunky (it requires an extra group). I schedule it as a Cron job every hour (after it updates the Smart groups).

It's pretty ugly at this point but it works. Here is the code: github.com/guruevi/CiviGroupSync

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Group sync Drush implementation (For Smart group -> ACL group)

This forum was archived on 2017-11-26.