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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • What is the quickest way to go from CiviCRM Organization to Drupal User who has
Pages: [1]

Author Topic: What is the quickest way to go from CiviCRM Organization to Drupal User who has  (Read 1856 times)

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
What is the quickest way to go from CiviCRM Organization to Drupal User who has
July 29, 2007, 06:26:05 pm
permissions to edit their Organization Profile?
I have tried this via the noted process of  CiviCRM export to Drupal User import but the imported users are NOT connected to the Organization.
The goal is this, the Interns are going to enter Organizations and the emails entered for the Org need to relate to the Drupal user.
So when the drupal user logs in they can edit the Organization Profile via My Account in drupal.
I have tried a number of ways.
Seems that this is the best so far
Intern makes drupal user.
They click the masquerade module to become the user they just entered.
Then they click a Organization Profile I made via CiviCRM Profiles.
The profile is created and under "My Account" the masqueraded user now can modify their Organization data as needed.
Then the Intern clicks "Switch Back" to go back to add another drupal user
Bulk imports would be nice but again it seems I may be missing something since I get stuck on trying to link the drupal user to the Organization and NOT the Individual.
Thanks

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: What is the quickest way to go from CiviCRM Organization to Drupal User who
July 30, 2007, 11:58:03 am
First, the link between the Drupal User and the CiviCRM Contact record is stored in civicrm_uf_match - and you could potentially manipulate it programmatically after doing a bulk import of organization records ???).

The default CiviCRM behavior for new registration is to create a contact with type = "Individual" when a new Drupal user record is created. There is some code to over-ride this by passing in a "ctype" POST parameter. This functionality is described here:
http://issues.civicrm.org/jira/browse/CRM-1375

NB: I don't think this feature has been used much - so it might not work as advertised - but worth playing with given your requirements.

Protect your investment in CiviCRM by  becoming a Member!

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: What is the quickest way to go from CiviCRM Organization to Drupal User who
July 31, 2007, 10:08:12 am
Okay I will look this over more as this step become closer to needing to be done.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • What is the quickest way to go from CiviCRM Organization to Drupal User who has

This forum was archived on 2017-11-26.