Managing Users in Drupal

Managing Users in Drupal - header image

Managing users in Drupal 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. If you are starting a new Drupal site and adding users for the first time, check out our Drupal Hosting options for an optimized hosting solution for your website.

Understanding Drupal User Roles

There are three kinds of default user roles in Drupal. These are the Admin (or Super User), the authenticated user, and the anonymous (unauthenticated) user. Each of these roles have very different privileges within a Drupal website.

AdminThis is the most powerful of the user roles. The default Admin can perform any function in the Drupal program and has all permissions enabled. This role has ultimate authority and it is advisable to only have one Admin user.
AuthenticatedThis is your normal, everyday visitor who has registered with the website. This role usually has very limited permissions, but typically more than the anonymous users. These users typically have all the permissions of the anonymous user, but can also publish comments on the site as well.
AnonymousThis user is the site visitor that has either not registered with the site, or has yet to log into their account. These users are typically very limited. In fact, the anonymous user can only view comments and published content, and use the site-wide contact form by default.

There are no other roles by default, but many different roles with various permissions can be created. These roles may fulfill different specific duties on the site without giving any particular group too much power. One popular custom role is that of moderator, which can publish, delete, and approve messages and comments. This user can even have the ability to ban other users if needed.

Adding Users to Drupal

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

    Drupal User Roles and Permissions

  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 in Drupal

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 Drupal users by filtering or sorting through the list.

Note that editing a user can only be done by an administrator.

Blocking and Unblocking Users in Drupal

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 Drupal 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:

Use the Action List in Drupal 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 in Drupal

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

    Cancel User account options
  6. Click on the blue Cancel accounts button to confirm and commit the cancellation(s).

This completes our tutorial on Managing users in Drupal. To learn more about using Drupal, please see our Drupal Educational Channel.

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? Join the conversation!