Skip to content

Instantly share code, notes, and snippets.

@ghalusa
Last active August 29, 2015 14:18
Show Gist options
  • Save ghalusa/e9ddcb6f176150101512 to your computer and use it in GitHub Desktop.
Save ghalusa/e9ddcb6f176150101512 to your computer and use it in GitHub Desktop.
Drupal Drush: Create a New User With Administrative Role

Create a New User

drush ucrt "new_user" --mail="new_user@email_address.com" --password="new_password"

Add the Administrator Role to the New User

(check the database to get the administrator ID)

drush urol "administrator" 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment