December 2016
Beginner to intermediate
1005 pages
21h 54m
English
When you need to add an account to Drupal, you will visit the People page and manually add a new user. Drush provides the complete user management for Drupal, from creation to role assignment, password recovery, and deletion. This workflow allows you to create users easily and provides them with a login without having to enter your Drupal site.
In this recipe, we will create a staff role with a staffmember user and log in as that user through Drush.
role-create command to create a new role labeled staff:$ drush role-create staff Created "staff"
role-lists command to verify that the role was created in Drupal:$ drush role-list ID Role Label anonymous Anonymous user authenticated Authenticated ...
Read now
Unlock full access