Managing users in Drupal 9 is done through the administrator dashboard in the section labeled People. You can set user statuses, roles, and permissions. You can also add, delete, and block users. Drupal’s user management interface is clean with clear functional options.
Follow the tutorial below to learn about managing users in Drupal 9.
Searching for a new home for your Drupal 9 website? Check out InMotion’s VPS solutions for secure, performance-oriented servers to meet your needs.
In order to add a new user, you must be logged into the Drupal administrator dashboard. Follow the steps below to add a new user:
- Log in to the Drupal Adminstrator Dashboard as an administrator.
- Click on People.
- Click on Add User.
- The first 3 fields for the new user includes: Email address, Username, and Password. The fourth field simply confirms the added password.
- The next section of adding a new user involves the Status, Roles, and a Picture. There are also options for Contact settings, and time zone. Select a Role and whether to notify the user of the account. The Status option will default to
Active. You can elect have a picture, but it needs to be one of these formats: png, gif, jpg or jpeg.
- Click on the checkbox for Contact Settings to allow for a Contact Form to be used to contact the user.
- The next setting is labeled as Locale Setting. This allows you to select a time zone and associate it with that user.
- Click on the button labeled Create new account to save the user you just added.
Finding and Editing Users
Editing the User involves finding the user that was added and then bringing up this same user interface onto the screen. To find users, you can use the filter option at the top to filter the name, email, status, role, or permissions for a specific user or set of users. You can also use the table at the bottom of the screen to sort by username, status, roles, membership length, or last access.
Note that editing a user can only be done by an administrator.
Blocking and Unblocking Users
If you need to block a user, then you can select to edit the user or you can find the user in the list and select the action drop-down menu.
In the screenshot below you can click to block a user by editing the user:
You can click the Blocked option under Status.
The second method of blocking a user can be done in the table of users using the action menu. Here you can see the action list and the options to block or unblock users:
Blocking a user simply prevents the user from accessing the Drupal site. Blocking the user will not remove the user from the list.
Canceling a user gives you the option to delete the account. In some cases, you may decide that the account should not be deleted. You can see the option when you confirm the cancellation of an account. Follow the steps below to cancel an account:
- Log into the Drupal Administrator Dashboard.
- Click on People.
- Select the user(s) that you wish to cancel from the list by clicking on the checkbox for the account.
- Once you have the user(s) selected, click on the action drop-down menu.
- When you select the action to cancel the user account(s) you will see a confirmation what you want to do with the account:
Click on the option you want to use when cancelling the account.
- Click on the blue Cancel accounts button to confirm and commit the cancellation(s).
This completes our tutorial on Managing users in Drupal 9. To learn more about using Drupal, please see our Drupal Educational Channel.