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) »
  • Drupal/CiviCRM access problems
Pages: [1]

Author Topic: Drupal/CiviCRM access problems  (Read 2205 times)

sfr-randy

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Drupal/CiviCRM access problems
July 29, 2007, 10:03:38 am
I'm trying to setup an alumni database which allows alums to use CiviCRM to search our alumni contact info, but not other contact info we have in CiviCRM.

All Alumni contacts are in the CiviCRM group called "Alumni". I setup a Drupal Role called "Alumni User" and assigned that to all the relevant Drupal users.

The problem is that using CiviCRM ACL, I cannot do what I want. If I set "See All Contacts" in Drupal then the logged in user sees everything. If I don't set the "See All Contacts" in Drupal, then the logged in user cannot search for other alumni. In both cases the CiviCRM ACLs and Roles seem to have no effect.

Should I be able to do what I want? If so how? If my Drupal/CiviCRM permisions are wrong, how can I fix?

Using Drupal 5.2 and CiviCRM 1.7.

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: Drupal/CiviCRM access problems
July 29, 2007, 02:29:12 pm

You can do the below using a profile, check this article out:

http://wiki.civicrm.org/confluence/display/CRM/Creating+a+website+member+directory

You can use the Limit Listings to Group feature of profile to basically restrict the contacts alumni see

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

sfr-randy

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: Drupal/CiviCRM access problems
July 29, 2007, 03:51:15 pm
Thanks, I'll give that a try. Just want to clarify that we have alumni contact info for several thousand individuals, but only about 125 have requested website accounts to they can access the info. We want the alumni with login accounts to search the entire set of contact info for individuals in the Alumni group.

Using this method, should the individuals with login accounts have access to the CiviCRM module via Drupal permissions?

I guess I don't quite understand why CiviCRM roles/acl would not be appropriate to limit their access to just individuals in the Alumni group.


Randy

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: Drupal/CiviCRM access problems
July 29, 2007, 04:33:42 pm

CiviCRM Roles/ACL is appropriate also for your case. I recommended the profile approach since its significantly easier to setup and get deployed etc.

You'll have to read the ACL docs quite carefully and experiment with it. The docs are at:

http://wiki.civicrm.org/confluence/display/CRMDOC/Access+Control

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

jbates

  • Guest
Re: Drupal/CiviCRM access problems
July 31, 2007, 12:26:37 pm
I think I have a similar problem. (Now working with 1.8 Beta.)

When someone clicks on a record in our Google Map, they go to a CiviCRM record for that organization. If they click on the "Change Log" tab, they can see that I last updated the record, and they can click on my user record, and then the group "Users" and then they can see our whole dang database. To illustrate, http://dev.compartners.org/civicrm/profile?reset=1&gid=8&force=1&map=1

I want to allow anon and non-admin users to see the group of records that comprise our map, BUT NOT ANYTHING ELSE in CiviCRM. I am playing with ACLs for the first time, but I cannot figure out how to block access from all other groups of data in CiviCRM. Any ideas?

Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Drupal/CiviCRM access problems
July 31, 2007, 05:33:44 pm
Johanna - Based on a prior discussion and looking at your use case, we had posted an improvement issue to change the way the links on Profile map pop-ups work - and have them go to the "view" page for the associated profile.

http://issues.civicrm.org/jira/browse/CRM-2088

I think this will work much better for you than allowing anonymous users into the main CiviCRM interface and trying to control what they see and do. Given your current setup on development, map links would go to this page (for example):

http://dev.compartners.org/civicrm/profile/view?reset=1&id=1030&gid=8

Lobo and I just worked on cleaning this up and it is now working as specified (as of r10652). This fix will be included in the next beta tarballs.
Protect your investment in CiviCRM by  becoming a Member!

jbates

  • Guest
Re: Drupal/CiviCRM access problems
August 01, 2007, 05:31:54 am
This is exactly what we wanted. When we use profiles, we use them because they are so much easier to control in terms of display and access, and when the map went into the CCRM record it kind of messed with that control. This is much better! Thank you so much.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Drupal/CiviCRM access problems

This forum was archived on 2017-11-26.