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) »
  • Anonymous profile record access in Drupal
Pages: [1]

Author Topic: Anonymous profile record access in Drupal  (Read 1080 times)

Toucan

  • I’m new here
  • *
  • Posts: 18
  • Karma: 1
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Anonymous profile record access in Drupal
January 24, 2011, 12:40:45 pm
I have a Drupal and CiviCRM installation and have some difficulty in implementing it. I read up on linking to profiles in the documentation:
wiki.civicrm.org/confluence/display/CRMDOC33/Linking%20Profiles#LinkingProfiles-LinkingtoBuiltinContactViewandEditPage%28s%29

Sending emails in the format:
http://<site root>/civicrm/profile/edit&reset=1&gid=N&id={contact.contact_id}&{contact.checksum}
..works perfectly: the contact's form is revealed with the selected options.

I'd like this record view to be visible to anonymous Drupal users without having to email them.
<site root>/civicrm/profile/edit&reset=1&gid=N
Right now it shows the Profile form, but the fields are all empty.

Is there a cookie that is supposed to detect the user to show their record?
If I add the user ID at the end of the URL, it redirects me to the home page: <site root>/civicrm/profile/edit&reset=1&gid=N&id=xxx

If I go to view the specific record:
<root>/civicrm/profile/view&reset=1&gid=10&id=xxx
...I get a warning: "You do not have permission to edit this contact record. Contact the site administrator if you need assistance. "

The Drupal anonymous user permissions are checked for:
access Contact Dashboard
access all custom data
profile create
profile edit
profile listings
profile listings and forms
profile view

Do I need to assign more permissions?

My understanding also, is that contacts don't need to have a Drupal account to access their own CiviCRM record. Is that correct?

Thanks,
Tom

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: Anonymous profile record access in Drupal
January 24, 2011, 01:46:01 pm
Hi Tom - unless visitors are logged in then there is no way of knowing who they are and therefore what data to show them via the Profile.

Checksum gets around this because it is firing out token info that the site can then use to verify that this is 'john' coming to visit.

I think you are asking for the impossible, ie an Anonymous user comes to the site but somehow civicrm knows who they are.

Checksums are the only secure way of doing this I suspect
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

Toucan

  • I’m new here
  • *
  • Posts: 18
  • Karma: 1
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19
  • MySQL version: 5.0.91
  • PHP version: 5.2.14
Re: Anonymous profile record access in Drupal
January 24, 2011, 03:24:56 pm
Hi Peter,

Thanks for the reply and clarifying how this information is accessed.

I think we'll resort to using it only in emails then.

Tom

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Anonymous profile record access in Drupal

This forum was archived on 2017-11-26.