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) »
  • How to enable a Drupal User to edit their own CiviCRM info with a Profile?
Pages: [1] 2 3

Author Topic: How to enable a Drupal User to edit their own CiviCRM info with a Profile?  (Read 17581 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 11:37:45 am
Hi Gang.  It's your friendly Profile n00b again, trying to figure out how someone with a Drupal account can edit their corresponding CiviCRM data through the use of a Profile.   

I started by creating a new Organization in CiviCRM, and then using the User Import module to bring over the user into Drupal.  I imported the user using the email, Organization Name, and that was it.    I've gotten pretty far with this, but now have hit a roadblock in that all the data in the Profile is blank when we view the Profile.    Is the Drupal user not "linked" to the CiviCRM user?  I thought this was done via email and the email is the same...?   I did this successfully on another site once before, but this is not working on this site.   I've always thought that visual images help with this kind of thing, so I have uploaded Screenshots to you to view.    By the way I am aware that I have some of my fields as "individual" when the contact in question is an organization.  This is an experiment---but please note that ALL the fields are blank on the Drupal edit screen, so something else is the matter.

The big question is...why are the Fields in screenshot #3 blank?  (scroll down for more)

I know I have probably mis-configured something, but what?

Please let me know.

Thanks!!!

Using version 2.0.5 with Drupal 5.10
« Last Edit: September 25, 2008, 11:41:37 am by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 11:38:07 am
more screenshots!
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 12:02:21 pm
Is this part of the answer http://wiki.civicrm.org/confluence/display/CRMDOC/How+to+Create+Profiles

Quote
Limitations on Record Types

Profiles have an implicit type which is determined by the record type of the fields you add to it. For example, if you put the field First Name which belongs to Individual contact records into a Profile - then the Profile type will be Individual. The current supported types are: Individual / Household / Organization / Contribution / Participant / and Mixed.

For most profile uses, you CAN NOT include fields from different types of records. For example, including First Name (Individual), Last Name (Individual) and Household Name (Household) in a Profile will result in configuration error when you attempt to use the profile.

Also, if you want to include a profile in Drupal User Registration or My Account screens - ALL fields in the profile must belong to the Individual contact record type.
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

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 01:04:23 pm
Ok thanks for the information.  I have changed all my fields to Individual fields.  I have used an assortment of fields (all individual) as a test. 

They are all still blank.  See attached screenshot.  Any further ideas?

Are you trying to tell me that it is impossible for an Organization in CiviCRM to have a Drupal login and edit their own CiviCRM information via a profile?
« Last Edit: September 25, 2008, 01:46:56 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 02:22:59 pm
hey stoob. here is what is a part of 2.1 http://blog.civicrm.org/node/318

as far as 2.0 i'm not exactly sure how this was implemented since we haven't done this for any of our clients but some info mentioned here http://civicrm.org/node/352

i'm sure someone will have more details about the "hack" mentioned in the above link.

hope this helps
tony
http://dharmatech.org
oss@dharmatech.org
801.541.8671

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 03:18:58 pm
Hi Dharmatech,

That makes for interesting reading. 

It lets me know:

1) That 2.1 will allow "on behalf of" memberships where a person signs up and can maintain an Organization's data
2) There is a hack in 2.0 that will allow me to code a new registrant as a Organization instead of the default Individual

This is interesting, but unfortunately, not really the information that I need.

You see, we already have 500+ organizations in the CiviCRM Contacts database that I imported.   We have an email for each organization (such as info@myorganization.org), but in many of those cases we might have data at those organizations as a 'contact person' or maybe a person's email but generally not both at the same time in any organized fashion.   So in other words, we just don't have the data to use feature #1 listed above without a huge effort to collect more data. 

I don't have a pressing need to register new Organizations or Organization/Individual pairs, we already have over 500.   I also don't need to give an Individual access "on behalf of" to edit an Organization's data and renew that Organization's membership, because in most cases I don't know who the individual actually is.

So you see, I appreciate that although you say sharing logins is "a crummy practice" -- and I agree -- but nevertheless it is how my client has been doing it for years and I've been working with them for a few months.  Telling them they have to change -- might not go over so well.  And now we have to try to fit our round data into CiviCRM's square hole.  I'm a bit confused as to how to proceed.

Any ideas?

« Last Edit: September 25, 2008, 09:21:54 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 03:33:34 pm
i am not sure if what you are doing is possible. are you trying to use the organisation's 'my account' to view information about another contact - or their own data? The latter will work, the former is not something I have tried but sounds unlikely.

BTW in fig 4 i couldn't see any data in the Summary/Edit page that would show on the profile (ie the clip is of phone etc, but the profile is showing address etc). Does the Test Organisation have some data in its Street Address (Main) field?

if you have an organisation that has data in an address field (eg Main)

and you have a profile set up to show organisation address fields (eg Main)

and you go to the organisations 'my account' page and click on the available profile then i would expect to see the data.
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

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 03:54:27 pm
@peterd -- I am not trying to use the Organization's 'my account' to view information about another contact.

I am trying to use an Organization's 'my account' screen to edit that Organization's own information in CiviCRM, after a Drupal User has been created for that Organization in Drupal using the same email address via the User Import module.

And yes, the Organization record in CiviCRM does have data (attached).

I have changed the Profile to show only Organization fields.

Result:
I go to the Organization's 'my account' page and the profile does not appear if all the fields are of type "Organization".  If one field of type "Individual" is added then the Profile does show up in the 'my account' page. 

Conclusion:
It seems that fields of type "Organization" are incapable of being edited through the My Account screen.

Is this a correct Conclusion in your opinion?
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 04:55:57 pm
As described in the blog post referenced by Peter D,  the team made a decision that we would NOT support the concept of an Organization having a Drupal user login. Users are people, and the only way the "organization as user" model works is if logins are shared - which we think is not a great practice.

Hence, the concept of permissioned relationships - allowing a user to maintain basic organization contact info for "their organization(s)" using a link from the CiviCRM Contact Dashboard.

If this approach doesn't work for you - then you might be able to link folks to an Organization Profile (at http://your_site/civicrm/profile/edit?gid=N) using the checksum link method discussed elsewhere on this forum. You will not be able to expose Organization Profiles within User Registration or My Account - they just  won't show up.
Protect your investment in CiviCRM by  becoming a Member!

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 09:20:57 pm
Ok so then PeterD was incorrect saying that Organization fields should show up in My Account.  That's what had me confused for a second.   

So this "permissioned relationships" (Individuals representing/managing an Organization) will be available with the fabled 2.1 release?

And I can then have Individuals responsible for Organization data?

« Last Edit: September 25, 2008, 09:27:13 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 09:27:31 pm
Sorry - mea culpa - I was trying to find time to actually create a User Account for an Organisation but ran in to another problem that needed solving - you know how it us (pete pulls hat over face)
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

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: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 25, 2008, 09:29:05 pm
In my defence  ;D I thought one of your screen shots showed that you did have a Drupal user account for an organisation.
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

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 26, 2008, 09:49:50 am
Not to beat a dead horse here PeterD, but you are correct that  I do have a Drupal account for an Organization.  I used User Import module with Drupal to import the CiviCRM 'Organization' type contact Test Organization and give that Organization a Drupal login.   However, once that Organization has a Drupal login, the Organization is unable to access a Profile to edit the Organization's CiviCRM data.  CiviCRM disallows it.

Do you see what I am saying here?   Are we on the same page now?
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 26, 2008, 01:36:35 pm
Quote from: Stoob on September 25, 2008, 09:20:57 pm
Ok so then PeterD was incorrect saying that Organization fields should show up in My Account.  That's what had me confused for a second.   

So this "permissioned relationships" (Individuals representing/managing an Organization) will be available with the fabled 2.1 release?

And I can then have Individuals responsible for Organization data?

Rather than talking about "fables" - might be advisable to try out your use case on the public 2.1 demo, or do a test upgrade and see how it works for you with a copy of your site / data.
Protect your investment in CiviCRM by  becoming a Member!

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 26, 2008, 03:51:14 pm
Hey great idea!  While I don't have the permissions or budget approval to upgrade Drupal on our servers and make a test install of CiviCRM 2.1.... I can fool around with it on your Demo server.

Here is what I did.

1) Logged into to demo.civicrm.org and created an Organization called Stoob Test Org  (and entered dummy data)
2) Created a profile called "Profile Stoob" containing one field:  Home URL (Organization) - of which data exists for this field
3) Went into CiviCRM and established a Relationship: the "demo" Contact  (Drupal username "demo" / CiviCRM contact name "Demo, Stoob was here") is an "Employee of..." the Stoob Test Org  Organization and gave "demo" the ability to edit this Organization's information by checking the box.   Now 'demo' relationship reads: "Can view and update information for 'Stoob Test Org'"
4) Went to "demo" My Account section and clicked Edit.  Now I see "Profile Stoob" in the list of available profiles....oops wait, the profile is blank - no fields appear.

So I'm not sure exactly how to proceed here!  According to this article I read ( http://civicrm.org/node/318 ) this should be the general idea behind the process, but I didn't see any specific tutorials or anything.  Maybe I misunderstood the intent or the process, if that is the case let me know.

I hope I can be of any assistance in this matter necessary, I am doing all I can to help your project with a busy schedule.  All of the test data is still in your Demo site.  Check it out and let me know if I did something wrong!


Thanks!
Stoob!

PS.  As an aside, I am also wondering what ability being "able to view or change" an Organization's data would have on the Membership Signup page at: http://drupal.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=2
« Last Edit: September 26, 2008, 04:04:25 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1] 2 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • How to enable a Drupal User to edit their own CiviCRM info with a Profile?

This forum was archived on 2017-11-26.