You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's 3 PHP statements. The first makes an API call based on the ID 333 to get that contact's info. Second, we set the CMS username to the contact's display name (could also be, e.g., $contact["email"] and not $contact["display_name"]). The third command creates the CMS user.
Note that this doesn't actually connect the user to the Civi record, but that will happen when they first log in. If you need that ahead of time, you'll have to figure that part out :)
Is there a
cv
command for "Create User Record", to create a WordPress/Drupal user for a given CiviCRM contact? It would be very convenient if so!The text was updated successfully, but these errors were encountered: