Answers.Body: <p>I've had good results using Drupal rules. The recipe is set in detail here by Pete from Fuzion in NZ - thanks Pete: <a href="https://civicrm.org/blog/petednz/creating-drupal-users-made-easy-for-single-or-multiple-contacts-via-civi-imports-and" rel="nofollow noreferrer">https://civicrm.org/blog/petednz/creating-drupal-users-made-easy-for-single-or-multiple-contacts-via-civi-imports-and</a></p>
  
  <p>I guess I would first be sure that you need to create user accounts for all your users all at the same time. Using this recipe, you can manage when accounts get created.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-01T16:21:34.563Z
Answers.Text: Hi Graham,
  
  To be honest, yes it would be a very good idea to do them altogether, although they can be split into distinct groups if we need to.
  
  I did have a look at Pete's blog post, but it was basically over my head when I was assured that it could be done via a simple method.
  
  Once this bulk import is done, everything is in place for new members to register and it to do what it does without intervention.
Answers.UserDisplayName: Darren Whittenham-Gray
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-02T12:13:19.167Z
Answers.Text: The User Import module looks like a better fit in your use case.
Answers.UserDisplayName: Graham
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2015-04-01T16:08:19.560Z
Answers.LastActivityDate: 2018-11-05T15:23:19.163Z
Answers.LastEditDate: 2018-11-05T15:23:19.163Z
Answers.UserDisplayName: Graham
Answers.Body: <p>I've done this a few times using the <a href="https://www.drupal.org/project/user_import">User Import</a> module. You just get a contact listing of all the contacts in CiviCRM that need an account (for example, all of the contacts in a particular group or those that are returned from a particular search) and then do a simple CSV export of the relevant information.</p>
  
  <p>You could export the email address, first name, last name, and then edit the list in a spreadsheet if you need to generate custom usernames or passwords. The module will allow you to construct usernames on the fly by using multiple fields. You can optionally abbreviate them as well, so you could do a username as any of the following without any extra editing of the CSV data: </p>
  
  <ul>
  <li>FirstLast</li>
  <li>FLast</li>
  <li>FirstL</li>
  </ul>
  
  <p>The module will also allow you to send the welcome email (or a custom welcome email), assign roles, and more.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-01T16:33:56.007Z
Answers.Text: I am just installing the User Import module now; so hopefully that might be right.
Answers.UserDisplayName: Darren Whittenham-Gray
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-01T16:38:26.453Z
Answers.Text: You beat me to it by 7 minutes. I follow this method. I assign usernames and passwords this way and send the welcome if necessary. Then I go back to CiviCRM -> Administer -> Users and Permissions -> Synchronize users to contacts to ensure that CiviCRM has a relationship between all of the contact records and the Drupal user accounts. CiviCRM will create a relationship between CiviCRM and Drupal in the civicrm_uf_match table.
Answers.UserDisplayName: Andrew Wasson
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-01T17:29:26.267Z
Answers.Text: Well you know what... it appears to be working.
  Many thanks for your support of the module!
Answers.UserDisplayName: Darren Whittenham-Gray
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-01T16:23:13.750Z
Answers.LastActivityDate: 2015-04-01T16:23:13.750Z
Answers.UserDisplayName: Laryn
Body: <p>I am currently using a Drupal 7.35 CiviCRM 4.4.14 build for a new website. I have all of contacts set up, with their relationships and memberships, and all the rules in place so that as it changes in Civi it pushed the changes on Drupal.</p>
  
  <p>What I do not understand however, is how to migrate the 1000 or so contacts in Civi to create their log-ins in Drupal. </p>
  
  <p>Some webpages suggest exporting to CSV and importing from CSV; and I have not even started looking into Drush.... surely there must be an easier way?</p>
  
Tags: <contacts>
Title: How Do You Create Users from Contacts?
ThreadText: # How Do You Create Users from Contacts?
  
  (Asked by: username_0 on 2015-04-01)
  
  I am currently using a Drupal 7.35 CiviCRM 4.4.14 build for a new website. I have all of contacts set up, with their relationships and memberships, and all the rules in place so that as it changes in Civi it pushed the changes on Drupal.
  
  What I do not understand however, is how to migrate the 1000 or so contacts in Civi to create their log-ins in Drupal.
  
  Some webpages suggest exporting to CSV and importing from CSV; and I have not even started looking into Drush.... surely there must be an easier way?
  
  **Tags:** contacts
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-04-01. Score: 6 | Accepted answer
  
  I've done this a few times using the [User Import](https://www.drupal.org/project/user_import) module. You just get a contact listing of all the contacts in CiviCRM that need an account (for example, all of the contacts in a particular group or those that are returned from a particular search) and then do a simple CSV export of the relevant information.
  
  You could export the email address, first name, last name, and then edit the list in a spreadsheet if you need to generate custom usernames or passwords. The module will allow you to construct usernames on the fly by using multiple fields. You can optionally abbreviate them as well, so you could do a username as any of the following without any extra editing of the CSV data:
  
  * FirstLast
  * FLast
  * FirstL
  
  The module will also allow you to send the welcome email (or a custom welcome email), assign roles, and more.
  
  > **Comments:**
  > **username_0**: I am just installing the User Import module now; so hopefully that might be right.  
  > **username_3**: You beat me to it by 7 minutes. I follow this method. I assign usernames and passwords this way and send the welcome if necessary. Then I go back to CiviCRM -> Administer -> Users and Permissions -> Synchronize users to contacts to ensure that CiviCRM has a relationship between all of the contact records and the Drupal user accounts. CiviCRM will create a relationship between CiviCRM and Drupal in the civicrm_uf_match table.  
  > **username_0**: Well you know what... it appears to be working. Many thanks for your support of the module!  
  
  ---
  
  ### Answer by username_1 on 2015-04-01. Score: 4
  
  I've had good results using Drupal rules. The recipe is set in detail here by Pete from Fuzion in NZ - thanks Pete: <https://civicrm.org/blog/petednz/creating-drupal-users-made-easy-for-single-or-multiple-contacts-via-civi-imports-and>
  
  I guess I would first be sure that you need to create user accounts for all your users all at the same time. Using this recipe, you can manage when accounts get created.
  
  > **Comments:**
  > **username_0**: Hi username_1,  To be honest, yes it would be a very good idea to do them altogether, although they can be split into distinct groups if we need to.  I did have a look at Pete's blog post, but it was basically over my head when I was assured that it could be done via a simple method.  Once this bulk import is done, everything is in place for new members to register and it to do what it does without intervention.  
  > **username_1**: The User Import module looks like a better fit in your use case.  
  
  ---
  
  