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 Profiles (Moderator: Dave Greenberg) »
  • Limiting fields that a role can see via profiles
Pages: [1]

Author Topic: Limiting fields that a role can see via profiles  (Read 1461 times)

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Limiting fields that a role can see via profiles
November 13, 2009, 06:57:56 am
I am trying to set something up so that a specific group of users, 'Bulk Email', will only see fields that are required for sending bulk emails to certain groups. Those fields would be: 'First Name', 'Last Name', 'Email Address', and 'Groups'. I do not want them to see any other information associated with the contacts. I created a profile, called 'Bulk Email' and added those preexisting fields to it.

I created a Drupal user named 'john', created a Drupal role, 'CiviCRM User', and added him to that role, aside from Authenticated User, that is the only role that he is a member of. The only way that I could see to connect him to any CiviCRM permissions was to also make that user a CiviCRM contact, which I did. I then created a CiviCRM role, called 'Bulk Email' and made the contact a member of that role.

So now I have a Drupal user, 'john', who is a member of the two Drupal groups 'Authenticated Users' and 'CiviCRM User'. I synced my Drupal contacts so that 'john' is also a CiviCRM contact and then added that contact to the newly created CiviCRM role 'Bulk Email.

I then created two ACL's:

Type of Data: A Group of Contacts
Group: Development
Operation: View
Role: Bulk Email

And

Type of Data: A Profile
Profile: Name/Email
Operation: View
Role: Bulk Email

The first one seems to work; the 'Bulk Email' group can only view a contact if they are in the group 'Development'. However, the second one does not work. I was hoping that if you are in the role 'Bulk Email', that the only profile that you could see would be the 'Name/Email' profile (which I created and contains the fields First Name, Last Name, Email Address, and Groups).

Am I on the right path or am I completely misunderstanding how to use profiles?

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: Limiting fields that a role can see via profiles
November 13, 2009, 08:13:55 am

does auth user have the permissions: "profile listings and roles" which is the all powerful profile related permission?

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

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Re: Limiting fields that a role can see via profiles
November 13, 2009, 08:34:54 am
Authenticated users do have the Drupal permission "profile listings and roles". When I login as the user 'john' and do a search for contacts, only the contacts that are in the group 'Development' show up, which is great; however, 'john' can see every field for those contacts and I only want him to be able to see the fields specified in the profile 'Bulk Email'. Am I misunderstanding what profiles do or am I just doing something wrong?

Thanks for all of your help (again and again...)

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: Limiting fields that a role can see via profiles
November 13, 2009, 09:27:48 am

you are misunderstanding profiles

the profile acl's control access to the url: civicrm/profile*

not the fields that are displayed for a contact in civicrm/contact*

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

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Re: Limiting fields that a role can see via profiles
November 13, 2009, 10:46:49 am
I'm obviously confused here...

In reading this:

Quote
Using STANDARD or CUSTOM DATA FIELDS, you build PROFILES to meet specific data entry, viewing and searching needs.You take data fields and arrange them how you need them, depending on your business process.

For example, you can create a PROFILE that lists only the fields you use to enter data about new constituents. Rather than having to navigate through an entire blank record that shows every field, you create a PROFILE with only those fields you need to enter. This supports effective work processes by customizing the data entry screen to your needs.

PROFILES are used to meet your Data Entry, Data Viewing or Data Searching needs.

I took it to mean that I could create a profile that listed only specific fields and allow a specific group to only be able to view that profile. I see that I am missing where profiles actually get accessed. How do I actually access a profile as a user?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Limiting fields that a role can see via profiles
November 13, 2009, 04:59:04 pm
Might want to read this section of the doc:
http://wiki.civicrm.org/confluence/display/CRMDOC/Linking+Profiles

And check these sample links on the public demo:
Profile Create form: http://drupal.demo.civicrm.org/civicrm/profile/create?gid=1&reset=1

Profile Edit form for self (if logged in and permissioned): http://drupal.demo.civicrm.org/civicrm/profile/edit?gid=1&reset=1

Profile Edit form for some other contact (if permissioned): http://drupal.demo.civicrm.org/civicrm/profile/edit?gid=1&reset=1&id=88

Profile Search / Lisitngs: http://drupal.demo.civicrm.org/civicrm/profile?gid=1&reset=1

In general, profile links are created by you in the CMS menu or theme or blocks.... OR starting with 3.0 you can add your own CiviCRM Navigation items pointing to specific profiles for users who have "access CiviCRM" permission.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Limiting fields that a role can see via profiles

This forum was archived on 2017-11-26.