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) »
  • Permissions | Drupal-Created User, Read Only Access to Own Record
Pages: [1]

Author Topic: Permissions | Drupal-Created User, Read Only Access to Own Record  (Read 1118 times)

cmcallister

  • Guest
Permissions | Drupal-Created User, Read Only Access to Own Record
April 02, 2009, 04:56:33 am
Dear Community,
I need to know if its possible to do the following: we're setting up a system where teachers track student's participation in extra-curricular events using the 'Activities' module. The system requirements are such:

  • Students must be able to login and only be able to see their own record (not a problem with Drupal Access Permissions)
  • Students must not be able to edit their own details in Drupal, their contact information, or create activities in CiviCRM
  • Students must be able to be imported into Drupal + CiviCRM via a batch process

Possible Solutions?
  • User is imported to drupal via an Import module - and a contact is not automatically created in CiviCRM
  • Perform import process twice - once for drupal users, another for CiviCRM contacts
  • Allow students to see everyone's records
OR
  • User is created in Drupal, which automatically creates a contact in CiviCRM - (Can we collect the name user's First and Last Name for the CiviCRM profile at the time of user creation?)
  • Find a way to ensure that user is unable to edit their own record/add additional activities

Thank you very much in advance for helping me think through my problem.

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: Permissions | Drupal-Created User, Read Only Access to Own Record
April 02, 2009, 06:54:29 am

i suspect option 2 is better. You will need to write a custom module for a student to add/view their own activities. Should not be too hard if you restrict what an activity is etc.

If you do write the module, can you please share the code. If you need more help, contact us on IRC

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

cmcallister

  • Guest
Re: Permissions | Drupal-Created User, Read Only Access to Own Record
April 02, 2009, 01:39:09 pm
Hi there lobo,
I suppose the two questions that emerge are:

Is it possible to not create a new user without having a new individual automatically generated in CiviCRM?

Separately:

Is it possible to prevent a user from editing their own individual record?

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: Permissions | Drupal-Created User, Read Only Access to Own Record
April 02, 2009, 02:25:23 pm
Quote from: cmcallister on April 02, 2009, 01:39:09 pm
Is it possible to not create a new user without having a new individual automatically generated in CiviCRM?

possible but will require code modifications

Quote from: cmcallister on April 02, 2009, 01:39:09 pm
Is it possible to prevent a user from editing their own individual record?

i think u should be able to do this using drupal's permissioning system. you might want to check the drupal docs

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Permissions | Drupal-Created User, Read Only Access to Own Record

This forum was archived on 2017-11-26.