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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Access control for Group and associate contacts ...
Pages: [1]

Author Topic: Access control for Group and associate contacts ...  (Read 2722 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Access control for Group and associate contacts ...
March 26, 2008, 08:57:06 pm
Is it possible to set access control for our Drupal anonymous users to access CiviCRM contacts that are part of a specific CiviCRM group I've created.  I want them to see one group's contacts, but not other contacts in our database.  When they view the Contact listing, I don't want them to click on "Search Results" and get the entire database. 

Currently I'm trying this as anonymous user and I see all the contacts.

Installed on Drupal 5.7, and running CiviCRM 1.9.

Thanks in advance.

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Access control for Group and associate contacts ...
March 26, 2008, 08:58:59 pm
Actually, I just found this support doc on the forums:

http://forum.civicrm.org/index.php/topic,1386.0.html

I think this should answer my question(s)!  Let me know otherwise, or if there's other info out there.

Thanks.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Access control for Group and associate contacts ...
March 27, 2008, 09:19:31 am
That post covers the exact 2 approaches you can choose from :-)
Protect your investment in CiviCRM by  becoming a Member!

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Access control for Group and associate contacts ...
March 27, 2008, 02:18:56 pm
Yes, well I posted another support request.  Neither post seemed to help.  I created the "smart group" but then got stuck.  Still don't see how to output the search listing/results of just "organizations" to my anonymous users.  I only want anon to see the organizations and not the other contact types.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Access control for Group and associate contacts ...
March 27, 2008, 06:12:18 pm
Did you read about using Profiles here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Profiles+Admin

... and then looked at the "Limit Listings to Group" field under Advanced Settings.

If you've got a profile that Limits Listings to your smart group (which is only Orgs) - and then give anonymous role the "profile forms and listings" permission (drupal admin >> user >> access control) - that should do it for you.
Protect your investment in CiviCRM by  becoming a Member!

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Access control for Group and associate contacts ...
March 27, 2008, 07:06:26 pm
Profiles seems too confusing.  I may try it eventually.  However I think I've figured it out using CiviCRM Access Control (ACL). Here's what I did:

1) Disable the default Drupal access control for viewing contacts, profiles, etc. so it wouldn't interfere

2) Create an ACL role for Anonymous users

3) Create a new ACL that has VIEW permissions/operations to view "a group of contacts" and give this ACL the role of "Everyone" so it includes anonymous users

Well, I'm not sure this is the best method, but I logged out and tried accessing the data as an anonymous user and it's only showing the group data I wanted (not all the contacts) and only allowing VIEW permissions so it appears to be working now.

Thanks.

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Access control for Group and associate contacts ...
March 27, 2008, 09:02:15 pm
Profiles work great!  Thanks for the heads up on that.  I created a profile to use as a search form and list generator.  However the issue I'm running into now is that my pre-form help text is displaying in the PREVIEW mode but not in the actual "live" view, when I view the form page as an anonymous user.  The search form works, but the pre-form help text does not show up.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Access control for Group and associate contacts ...
March 28, 2008, 08:56:22 am
Can you try to recreate this problem on our demo site - http://drupal.demo.civicrm.org - and if it recreates please post an issue to our issue tracker (link is above).
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Access control for Group and associate contacts ...

This forum was archived on 2017-11-26.