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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How to apply access control to "smart" groups?
Pages: [1]

Author Topic: How to apply access control to "smart" groups?  (Read 1326 times)

ft_drupal

  • Guest
How to apply access control to "smart" groups?
March 30, 2008, 01:30:51 pm
In my application, I want to apply access control to groups that constantly get new contacts/members.
Since access control cann't be used on CiviCRM Smart Groups, is it possible to write database triggers to automatically add new contacts to a "normal" group and apply access control to such group?
This is just try to work around the access problem for smart group: make a normal group, use tiggers to make it smart. Will this work?
Thanks!!!

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: How to apply access control to "smart" groups?
March 30, 2008, 01:51:51 pm

Just to clarify, there are TWO groups involved in access control

The first group is the group of users to whom an ACL (access) is granted. i.e. any user belong to this group will have the associated permission. This group CANNOT be a smart group

The second group is the target group. This is the group that users in the above group (first group) can view/edit (depending on permission). This group can be of either type (static or smart). We are aware that there is a scalability issues if you have lots of smart groups. Specifically if one user has an ACL to 5+ smart groups, the resulting query will be quite complex (and potentially very slow). Rob Thorne has a potential workaround / fix for this (we are awaiting details on it)

So i suspect in your case the current acl structure will work.

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How to apply access control to "smart" groups?

This forum was archived on 2017-11-26.