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 CiviMember (Moderator: Deepak Srivastava) »
  • auto create drupal login for all members without login
Pages: [1]

Author Topic: auto create drupal login for all members without login  (Read 1002 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
auto create drupal login for all members without login
January 31, 2011, 09:35:23 am
Hello,

We have a client who uses CiviCRM to manage membership.  Most members create their own usernames and passwords but some are created manually by staff (on receipt of a paper application form).

We'd like a workflow for these members to automatically be set up and sent drupal logins and I am checking that I won't be re-inventing the wheel by writing something (maybe for civicrm/bin) that does the following at regular intervals

1) Looks for all members that do not have a drupal account
2) creates them one using a sensible username (based on name in civicrm and avoiding already existing usernames)

Cheers,
Michael


Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

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: auto create drupal login for all members without login
February 01, 2011, 10:46:01 am
This doesn't yet exist with any sort of automation.  It would be a custom programmed Drupal module using CiviCRM hooks.

Since it doesn't yet exist, I do this type of action using the Drupal User Import module.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: auto create drupal login for all members without login
February 03, 2011, 11:08:42 am
hey stoob,

we are writing this module here: https://github.com/michaelmcandrew/gp/tree/master/modules/custom/gpew_user_import

name might change to something like civicrm_make_user_for_members

The start of the module was based on Drupal User Import which is actually a pretty simple module when you look at the code :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • auto create drupal login for all members without login

This forum was archived on 2017-11-26.