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) »
  • Profile to allow an Individual to update Organization records
Pages: [1]

Author Topic: Profile to allow an Individual to update Organization records  (Read 542 times)

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Profile to allow an Individual to update Organization records
June 12, 2014, 04:00:50 pm
This is a two part questions.

Part 1: How do I create a profile such that when an Individual whose relationship to an Organization is marked as  "'Individual' can view and update information for 'Organization'" logs into my Drupal site that they can edit the Organization's records? I created a profile with the few records that are to be updated and marked it as 'View/Edit Drupal User Account', but nothing showed (because, I suspect, that the Drupal logged-in user is the Individual, not the Organization). I did find this posting, http://communitymediadatabase.org/node/24, but to call the approach described 'awkward' would be generous. I thought about using a Webform, but was not sure how to access the Organization records.

Part 2: Once Part 1 is resolved, using Profiles, is there some way to show the edit tab for the Organization profile to only a specific CiviCRM group/Drupal Role of people? Doing this for the Webform is straightforward.

Thx.

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: Profile to allow an Individual to update Organization records
June 12, 2014, 08:56:01 pm
what Org info do you want them to Edit - if just simple address stuff, then so long as Indiv has permissioned relationship over Org then they can do this via their CiviCRM dashboard where they should see the Org listed

if more complex, yes Webform is the way to go in our experience. documention on the webform-civi module is good so you should find what you need there

also read up about eileen's extension for extended permissions on relationships if you want more options.

hth
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

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Profile to allow an Individual to update Organization records
June 13, 2014, 12:01:09 pm
Quote
I thought about using a Webform, but was not sure how to access the Organization records.
You do this by creating a webform with 2 contacts - contact 1 should be the individual, contact 2 should be the organiztion. Enable the organization's "existing contact" field and then edit that field to pre-fill based on relationship.
To make this work with permissions, you will need to install the above mentioned extension.
Try asking your question on the new CiviCRM help site.

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: Profile to allow an Individual to update Organization records
June 13, 2014, 01:38:48 pm
Coleman, Pete,

Thanks for the help. I was unaware of the CiviCRM-Webform ability to link two contact records. Thank you for pointing that out. I was able to build a webform that allows an Individual to update a related Organization record.

With regard to permissions, I am still still struggling a bit. I did install the 'Relationship Permissions as ACLs' extension, but I do not see where it adds any additional permission-related fields to the form. Specifically, I do not understand how to limit updating the Organization's contact info to only that Individual for whom the "'Individual' can view and update information for 'Organization'" box is checked. Would one of you please provide some guidance?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Profile to allow an Individual to update Organization records
June 13, 2014, 02:31:17 pm
The extension doesn't add anything to the form and it doesn't have any configuration options. It simply makes it possible to do what you want. Without it, a permissioned relationship would not be sufficient to give the individual pemission to update the organization.
Try asking your question on the new CiviCRM help site.

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: Profile to allow an Individual to update Organization records
June 13, 2014, 03:05:16 pm
Must have been a caching problem - it now seems to be doing what I want. Thx.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Profile to allow an Individual to update Organization records

This forum was archived on 2017-11-26.