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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Create a Drupal user using existing contact
Pages: [1]

Author Topic: Create a Drupal user using existing contact  (Read 1280 times)

zagrev

  • Guest
Create a Drupal user using existing contact
May 23, 2008, 09:03:53 pm
Can I create a Drupal user using and existing contact? That is, can i create a new Drupal user without creating a new CiviCRM contact? What API should I use?

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: Create a Drupal user using existing contact
May 24, 2008, 09:42:11 pm

We dont have any exposed API to create a drupal user for a civicrm contact

if you are a developer, check CRM/Core/BAO/CMSUser.php (function createDrupalUser)

you might be able to use that and accomplish what you want

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

zagrev

  • Guest
Re: Create a Drupal user using existing contact
May 25, 2008, 06:38:08 am
Thanks for the pointer, I'll look into that. It looks like the forgotten password page does something like this. It appears to recognize CiviCRM emails when you enter the email of the account. I'll look there too.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Create a Drupal user using existing contact

This forum was archived on 2017-11-26.