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) »
  • Add a single user to an ACL role?
Pages: [1]

Author Topic: Add a single user to an ACL role?  (Read 1236 times)

staecker

  • Guest
Add a single user to an ACL role?
July 09, 2007, 12:14:37 pm
I know how to add a group of users to an ACL role. Is there a way to add just a single user to an ACL role?

Here's my situation: I am using drupal with about 100 users, each with their own list of contacts. Each user should have edit permissions for their own contact list, and be blocked from all the others. So my idea is to create a unique role for each user which allows that user to edit their contact list.

So user x belongs to role x, and all members of role x are allowed to edit contact group x.

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: Add a single user to an ACL role?
July 09, 2007, 03:11:30 pm

We dont expose this in the UI to keep things simple, but i'm 99% sure this is supported (and has been used) at the code level. You'll have to deal with the  civicrm_acl_entity_role directly and set the entity_table to civicrm_contact. That way you can avoid creating a group for each user etc

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) »
  • Add a single user to an ACL role?

This forum was archived on 2017-11-26.