Managing Users in Drupal 9

Managing Users in Drupal 9 - header image

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.

Adding Users

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.

Adding User - blank interface

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:

  1. Log in to the Drupal Adminstrator Dashboard as an administrator.
  2. Click on People.

    Click People
  3. Click on Add User.


    Click add user

  4. The first 3 fields for the new user includes: Email address, Username, and Password. The fourth field simply confirms the added password.


    Adding User interface - part 1


  5. 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.

    add user - part 2

  6. Click on the checkbox for Contact Settings to allow for a Contact Form to be used to contact the user.
  7. The next setting is labeled as Locale Setting. This allows you to select a time zone and associate it with that user.
  8. 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.

Find users by filtering or sorting through the list.

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:

First method of blocking a user - edit 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.

Cancelling Users

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:

  1. Log into the Drupal Administrator Dashboard.
  2. Click on People.
  3. Select the user(s) that you wish to cancel from the list by clicking on the checkbox for the account.
  4. Once you have the user(s) selected, click on the action drop-down menu.

    Cancel User using the Action menu
  5. When you select the action to cancel the user account(s) you will see a confirmation what you want to do with the account:

    Cancel User account options
    Click on the option you want to use when cancelling the account.
  6. 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.

With our Cloud VPS plans, you can deploy a lightning-fast, reliable cloud platform with built-in redundancy – ensuring the availability of your environment!
AC
Arnel Custodio Content Writer I

As a writer for InMotion Hosting, Arnel has always aimed to share helpful information and provide knowledge that will help solve problems and aid in achieving goals. He's also been active with WordPress local community groups and events since 2004.

More Articles by Arnel

Was this article helpful? Let us know!