Answers.Body: <p>It seems to be hardcoded to the default role: <a href="https://github.com/civicrm/civicrm-core/blob/79ac44cf780f867e37ed2c11cc7e9855ec6df5e0/CRM/Utils/System/WordPress.php#L873" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/79ac44cf780f867e37ed2c11cc7e9855ec6df5e0/CRM/Utils/System/WordPress.php#L873</a></p>
  <p>You can configure the default role in the wordpress admin pages.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-01-18T14:23:17.253Z
Answers.LastActivityDate: 2023-01-18T14:23:17.253Z
Answers.UserDisplayName: Demerit
Body: <p>When using the &quot;Create User Record&quot; function on a CiviCRM Contact record, a wordpress (or other CMS) user is created.</p>
  <p>How can the default wordpress/CMS role of that user be modified in CiviCRM? By default it seems to be &quot;Subscriber&quot;.
  Is it possible to add other roles (in CiviCRM or in the CMS)?</p>
  
Tags: <wordpress><contacts><user><roles>
Title: How to change the Wordpress role assigned through "Create User Record" function
ThreadText: # How to change the Wordpress role assigned through "Create User Record" function
  
  (Asked by: username_0 on 2023-01-18)
  
  When using the "Create User Record" function on a CiviCRM Contact record, a wordpress (or other CMS) user is created.
  
  How can the default wordpress/CMS role of that user be modified in CiviCRM? By default it seems to be "Subscriber".
  Is it possible to add other roles (in CiviCRM or in the CMS)?
  
  **Tags:** wordpress, contacts, user, roles
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-01-18. Score: 1 | Accepted answer
  
  It seems to be hardcoded to the default role: <https://github.com/civicrm/civicrm-core/blob/79ac44cf780f867e37ed2c11cc7e9855ec6df5e0/CRM/Utils/System/WordPress.php#L873>
  
  You can configure the default role in the wordpress admin pages.
  
  
  ---
  
  