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 17577 times)

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, 04:25:15 pm
Access to updating "your organization info" (e.g Stoob Test Org) is provided via your the "My Contacts / Organizations" section of your Contact Dashboard. For the test you set up - you can see this by going to http://drupal.demo.civicrm.org/civicrm/user?reset=1 (while logged in as the 'demo' user)

So a "real life" user would need to have only the "access Contact Dashboard" permission enabled - and they could then maintain their org(s).

The implementation details are described here if you want to review them:
http://issues.civicrm.org/jira/browse/CRM-2963

I've updated the configuration for Membership Signup on the demo (Configure >> Title and Settings >> Allow individuals to contribute and / or signup for membership on behalf of an organization?

So now you will see this checkbox on the Signup form:
[ ] I am contributing on behalf of an organization.

The permissioned individual user will also be able to Renew membership for "their" organization - as described here:
http://issues.civicrm.org/jira/browse/CRM-2971

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, 04:54:19 pm
Gracias!

It looks like the Profile isn't even needed to edit your Organization's info, now that you have the fancy new Contact Dashboard.

Ok well, that answers my questions pretty much.  Looks like we have a lot to look forward to with 2.1.

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 26, 2008, 05:32:04 pm
Sound like you are both happy. As I tried to follow this, I am left wondering why the data in Profiles is not showing (ie data for LW Wilson not showing in - MyAccount>Edit) but suspect it is in the drupal permissions on the demo site. Dave is this right?

If you see I have set up new profile with new data, entered data for LW Wilson, and it is not showing on MyAccount.

Meanwhile good to have an excuse to try out the 'permissioned' aspect of 2.1 - looks very helpful.

Separate point - we seem to have a field in Summary called Website, but which is called Home URL - if this is correct it may be less confusing to use same terminology.
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

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 30, 2008, 04:21:12 pm
re data in Profiles not showing... not sure at this point what "case" you're referring to, demo has been reset I think ???

re "Website" vs "Home URL" - good point. The profile drop-down uses the DB column name which is not appropriate. I've filed a fix for 2.2:
http://issues.civicrm.org/jira/browse/CRM-3647
Protect your investment in CiviCRM by  becoming a Member!

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 30, 2008, 04:29:51 pm
Quote from: Dave Greenberg on September 30, 2008, 04:21:12 pm
re data in Profiles not showing... not sure at this point what "case" you're referring to, demo has been reset I think ???

if that was at me, no probs it was simply that the details were not showing in the profile in My Account and I wondered if the Permissions had not been set up on the demo for Profiles - not sure I will get around to retesting as will only matter if it is a problem on ours when we have permissions set up

Quote
re "Website" vs "Home URL" - good point. The profile drop-down uses the DB column name which is not appropriate. I've filed a fix for 2.2:
http://issues.civicrm.org/jira/browse/CRM-3647
great
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

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
November 18, 2008, 09:41:22 am
To clarify and draw things together: for this use case:

Allowing a Drupal user (without Access CiviCRM permission) to edit an associated Organization record including custom fields

Am I right in saying that the Contact Dashboard -> Related Org method cannot be used? (cf. http://blog.civicrm.org/node/318#comment-3018 : "Updating contact info for the organization will be part of the 2.1 implementation. Access to "other organizational data" would be a custom / or future release feature.")

And so is the only available method sending a profile link with contact checksum? (cf. http://wiki.civicrm.org/confluence/display/CRMDOC/Linking+Profiles ) - This doesn't seem a satisfactory replacement for the previously available functionality of having Org profiles available through My Account, because it doesn't provide the ongoing facility for users to log in and change their org's details. I wonder if a hack would be possible to put a profile link with contact checksum on the Contact Dashboard?

If these are the only current options, would it be a major piece of work to allow profiles to be used for the Contact Dashboard -> Related Org edit form?

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: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
November 18, 2008, 10:58:34 am
Quote from: davej on November 18, 2008, 09:41:22 am
Am I right in saying that the Contact Dashboard -> Related Org method cannot be used? (cf. http://blog.civicrm.org/node/318#comment-3018 : "Updating contact info for the organization will be part of the 2.1 implementation. Access to "other organizational data" would be a custom / or future release feature.")

yes

Quote from: davej on November 18, 2008, 09:41:22 am
And so is the only available method sending a profile link with contact checksum? (cf. http://wiki.civicrm.org/confluence/display/CRMDOC/Linking+Profiles ) - This doesn't seem a satisfactory replacement for the previously available functionality of having Org profiles available through My Account, because it doesn't provide the ongoing facility for users to log in and change their org's details. I wonder if a hack would be possible to put a profile link with contact checksum on the Contact Dashboard?

a hack to add that to the contact dashboard should be possible. Since its a site specific profile, i suspect the hack will be site specific also. ping us on IRC if u need help on this

Quote from: davej on November 18, 2008, 09:41:22 am
If these are the only current options, would it be a major piece of work to allow profiles to be used for the Contact Dashboard -> Related Org edit form?

its a bit of work, so a code contribution / sponsoring the feature would be great. We think it would be 50-100 hours of work. Contract and rates on the wiki

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

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
January 13, 2009, 09:52:32 am
There's a better solution here: http://forum.civicrm.org/index.php/topic,5699.msg25082.html#msg25082

- Thanks, as ever, to Lobo.

Dave J

crispinbailey

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
August 16, 2011, 06:27:14 pm
Reviving this thread for CiviCRM 4 and Drupal 7 :)

Like many others it seems, I'm looking for a simple way to give my signed-in Drupal users the ability to update/edit the contact record for their organization. I tried creating a profile called "My Organization" with all the fields I want users to be able to edit, I added it to my Drupal User Edit screen, making sure the proper relationships were set up for the User/Individual... but no fields show up when I go to the "My Organization" sub-tab. I guess I was being a bit too naive/hopeful that it would "just work" that way. ;)

So really, seriously, what's the best way (or any way) to do this? I've scoured the official documentation looking at how to link Civi profiles, I've read through this thread a few times now (as well as the one mentioned in the previous comment by davej), I've  tried building a custom Drupal module (as per ToddW's code here http://forum.civicrm.org/index.php/topic,12839.msg55463.html#msg55463 - alas doesn't seem to work with D7/Civi4)... I'm still baffled. Is there no "easy way" to do this?

Any insight MUCH appreciated!!!

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?
August 16, 2011, 07:08:11 pm
The Webform-CiviCRM integration has opened a whole lot of doors some of which I haven't explored but my testing suggests that you can
- set up a form to collect info about the Individual and the Organisation
- have it create the Current Employee relationship
- collect custom data for both the indiv and the org
- set it so logged in users get the form prefilled
- allow the Indiv so 'share' the address for the Org

and a whole lot of other treats.

Some of the v latest is still on git but -dev should have it in the next day.

May be worthwhile checking out - it is a great module and coleman is doing a great jobbing supporting it and us early adopters.

One thing it doesn't do - but asking nicely may help - is to let the relationships created in the above be 'permissioned' relationships
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

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?
August 17, 2011, 07:51:33 am
We are "pretty close" to being able to replace the hard-coded 'related contact' form with profiles (linked from contact dashboard for permissioned relationships). This would be a good alternative to the webform integration if that approach doesn't fit your requirements - so if you're interested in helping to push this forward, ping us on IRC or here.
Protect your investment in CiviCRM by  becoming a Member!

crispinbailey

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
August 17, 2011, 08:02:10 am
@petednz: Thanks for the info about Webform-CiviCRM Integration module! I'll have to check it out later today. Will report back if I find a good solution.

@Dave Greenberg: That sounds VERY promising! I'm interested in helping in any way I can, though I'll warn you I'm not a coder, just a hack(er). ;) So what still needs to be done to get it from "pretty close" to "eureka! it works!"?


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?
August 17, 2011, 11:26:11 am
One option to move this forward is to have a sponsor step up and "make it happen". Estimate for this work is 12 hrs @ core billing rate of $75 / hr = $900. If your organization is able to sponsor all or a chunk of this work - that would be great.
Protect your investment in CiviCRM by  becoming a Member!

crispinbailey

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
August 17, 2011, 06:28:43 pm
Cool. I'll talk to my client and let you know, though I'm doubtful they'll foot the whole bill as they're essentially a 1-person company operating on a shoestring budget. I'll see what they're willing to contribute however. I'm sure others on this board would like to see this happen as well. :)

crispinbailey

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: How to enable a Drupal User to edit their own CiviCRM info with a Profile?
September 06, 2011, 04:33:22 pm
Hi Dave,

Sorry to not get back to this sooner, it's been a crazy couple weeks. Long story short, my client (who I've been helping migrate from an old .ASP site to a shiny new Drupal 7 / CiviCRM 4 solution this summer) has not only declined to step up to "make it happen" for this functionality, but also decided to halt all further development on the project for another 6-12 months in the hopes that this and other integration issues (mainly related to Views) get worked out.

So I'm now the proud owner of a half-built association website AND I'm out a paycheck. Well at least I learned a lot.  ::)

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.