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 »
  • Pre-installation Questions (Moderator: Dave Greenberg) »
  • Import users then verify new user registration
Pages: [1]

Author Topic: Import users then verify new user registration  (Read 1083 times)

itowler

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 3.3.3
  • CMS version: Drupal 6.20
Import users then verify new user registration
March 11, 2009, 11:07:54 am
Ok, I have been trying to figure this one out. 

I have a database of about 28,000 contacts that we would like to move into Civicrm/drupal.  Each contact has a unique "member Number" that is not repeated etc...  I figured I would import the data into civicrm, and then let people know about the new site.  My question is:

Is there a method so that when people come to the site and create/request a new login/registration via drupal that they can be tied to the civicrm record by matching the "member Number" and be "auto-pproved".   I.e.  I do not want to have to A) approve 27,000 new user accounts, B) I do not want to have to verify that each person requesting an account on the site is a Member by matching there member number.

Is there an easy way to do this?

I am building the site from scratch, so no "old Users" to worry about.

Ian

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: Import users then verify new user registration
March 11, 2009, 11:45:16 am

you'll need to modify existing code for this and change civicrm's user_registration hook. We currently match on email address, and you will need to change that to match on member id (and do the right thing if member id does not match or is not entered)

check the register hook in drupal/civicrm.module and the matching code in CRM/Core/BAO/UFMatch.php

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

itowler

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
  • CiviCRM version: 3.3.3
  • CMS version: Drupal 6.20
Re: Import users then verify new user registration
March 11, 2009, 11:50:06 am
Don,

Thanks for the pointer...

I will take a look and see what I can find...

Ian

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Pre-installation Questions (Moderator: Dave Greenberg) »
  • Import users then verify new user registration

This forum was archived on 2017-11-26.