Answers.Body: <p>I am not sure if CiviRules allows the creation of a CMS user when a membership is created. But you could write a small extension that implements a hook to override the username (to use the member ID) and password (to use the Date of Birth) or implement a hook (post on membership) to create a CMS user when a membership is purchased (created),</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-24T14:21:57.907Z
Answers.Text: CiviRules doesn't have a "Create CMS User" rule - unless you install my [Silent User Registration](https://lab.civicrm.org/extensions/silentuserreg) extension :)
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-17T20:15:48.363Z
Answers.LastActivityDate: 2020-02-21T08:54:29.420Z
Answers.LastEditDate: 2020-02-21T08:54:29.420Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>Other option would be to look at what Drupal Rules can do</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-25T05:06:31.063Z
Answers.LastActivityDate: 2020-02-25T05:06:31.063Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>In my company members have a unique membership ID. Is it possible, that the Drupal users which are created by CiviCRM, can have this membership ID as the username and not the real name/email address as is used currently?</p>
  
  <p>We would also like to use the members' date of birth as their password and set this automatically.</p>
  
  <p>Thank you.</p>
  
Tags: <drupal><user-account>
Title: Create Drupal users with custom usernames from Company Data?
ThreadText: # Create Drupal users with custom usernames from Company Data?
  
  (Asked by: username_0 on 2020-02-17)
  
  In my company members have a unique membership ID. Is it possible, that the Drupal users which are created by CiviCRM, can have this membership ID as the username and not the real name/email address as is used currently?
  
  We would also like to use the members' date of birth as their password and set this automatically.
  
  Thank you.
  
  **Tags:** drupal, user-account
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-02-17. Score: 1
  
  I am not sure if CiviRules allows the creation of a CMS user when a membership is created. But you could write a small extension that implements a hook to override the username (to use the member ID) and password (to use the Date of Birth) or implement a hook (post on membership) to create a CMS user when a membership is purchased (created),
  
  > **Comments:**
  > **username_2**: CiviRules doesn't have a "Create CMS User" rule - unless you install my [Silent User Registration](https://lab.civicrm.org/extensions/silentuserreg) extension :)  
  
  ---
  
  ### Answer by username_3 on 2020-02-25. Score: 0
  
  Other option would be to look at what Drupal Rules can do
  
  
  ---
  
  