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) »
  • Providing company 'admin' access to company employees
Pages: [1]

Author Topic: Providing company 'admin' access to company employees  (Read 734 times)

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
Providing company 'admin' access to company employees
April 03, 2009, 04:43:01 pm
Hi - just need to run through this scenario and ensure we pick the best option. Feel this has been asked about several other times but not sure that simple ACL is workable in large systems.

SCENARIO
Organisation has companies as members, and their nominated 'employees' who are added as individuals inherit the membership.

There needs to be a Company Admin who can view/edit contact and custom data for the employees - and add new individuals.

OPTIONS
We could use ACLs but that seems like it would have to create a group for every Company - and that would be less than ideal.

Can we use the ACL hook to restrict people with the relevant permission to just the other employees in the company? And then limit what they can see/do via both Permissions and perhaps some profiles?

Or do we try to extend the 'contact dashboard' so that person with 'rights' allocated via Relationship can access the Custom Data of their 'flock'?

Or do we construct a Profile that is only available based on Permissions as per http://forum.civicrm.org/index.php/topic,6129.0.html (can't quite see how this can then enable the user to edit the contact without ending up with more permissions so probably not the route for this one)

ps - in testing a Permission based route, I was surprised to find that Manage Groups and Activity was available to someone with the following permissions
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

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: Providing company 'admin' access to company employees
April 03, 2009, 07:58:50 pm

I would use an ACL hook to implement the below model. You would also need to implement a contact (or profile) create hook to add the appropriate relationship between an individual and an org when a new individual is added. Doing it via a profile seems much safer

your last ps seems to be an incomplete statement

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: Providing company 'admin' access to company employees
April 03, 2009, 08:16:48 pm
thanks lobo - i think that was the answer i was hoping for - will get on to it and provide some documentation as this seems like the sort of access controls that have often been asked for

and yes that last sentence should have been deleted but i obviously got distracted and hit 'post' - though my surpise was that someone who is locked down on every other level via permissions still has total control over Groups.
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Providing company 'admin' access to company employees

This forum was archived on 2017-11-26.