User Management

Description Description

In this module you’ll learn how to add, edit, and remove users within your WordPress website. This module will introduce the user roles that exist within WordPress, but will focus on the how-to of user management, and not the organizational philosophy behind deciding which users are assigned various roles and permissions.


Top ↑

Objectives Objectives

After completing this lesson, students will be able to …

  • Update their own profile
  • Customize the visible columns in the Users table
  • Create a new user account
  • Enable/Disable the ability for users to register their own account
  • Use the search, filter, and batch modification tools within the users table to find and/or modify existing users
  • Add and remove permissions (via Roles and Capabilities) for individual users
  • Reset a user’s password
  • Disable a user without deleting them
  • Delete a user
  • Reassign a deleted user’s content to another user

Top ↑

Prerequisite Skills Prerequisite Skills


Top ↑

Assets Assets

  • A user account with the “Administrator” Role

Top ↑

Screening Questions Screening Questions

  • Are you familiar with the WordPress administrative Dashboard?
  • Do you understand the need for user accounts and security with shared technology?
  • Are you familiar with the roles of subscribers, authors, and editors in a publishing process?

Top ↑

Teacher Notes Teacher Notes

  • Performing a live demo while teaching the steps to manage users is crucial to having the material “click” for students.
  • While a sandboxed site is not necessary for this lesson, it is recommended. Ideally, students would not be modifying permissions or adding and removing real users from an actively used website.
  • This lesson is best suited for a WordPress site that doesn’t have plugins for advanced user management installed—for example, any plugins for adding custom roles and capabilities.
  • This lesson does not cover the “Super Admin” role used in the Network Admin Screen.

Top ↑

Hands-on Walkthrough Hands-on Walkthrough

Introduction: What is User Management Introduction: What is User Management

Welcome to User Management! Today you are going to learn how to add, remove, and update user accounts within your WordPress website, including a couple advanced topics like changing a user’s username. User management is important and useful for a few reasons:

  • You may want to add another user to your website without allowing public registration for new accounts.
  • You may want to promote an existing user to a role where they can create content for your site, demote an existing user, or remove their account entirely.
  • Perhaps you created your website with the default administrator username “admin” and later learned that’s not the best security practice and would like to change your own username.
  • As your website grows, it’s best security practice to disable or remove old and unused accounts.

Top ↑

Roles and Capabilities Roles and Capabilities

As you dig into User Management, you’ll see several user Roles appear. This module doesn’t dive deeply into what each of these roles are capable of, or why you should give a specific user a specific user role, but you will want to be familiar with them.

The WordPress Codex describes each role briefly as:

Administrator – somebody who has access to all the administration features within a single site.
Editor – somebody who can publish and manage posts including the posts of other users.
Author – somebody who can publish and manage their own posts.
Contributor – somebody who can write and manage their own posts but cannot publish them.
Subscriber – somebody who can only manage their profile.

For this lesson, the user account you access your WordPress site with should be of the “Administrator” role. For more information about the capabilities of each role type, review the complete Roles and Capabilities article in the WordPress Codex.

Top ↑

Users Menu Users Menu

To manage users you’ll use tools within the Users menu on the Dashboard, along with General Settings.

WordPress User Menu

Users > All Users

The All Users table is a complete listing of all users within your WordPress site, including your own user account. From the table listing, you have access to bulk actions, where you can modify multiple users at the same time.

Users > Add New

Add New allows you to manually add a new user. This is important if users are unable to register their own accounts and all new accounts are created by you or another administrator.

Users > Your Profile

Your Profile is where you can update information within your own profile. If you’re instructing another logged in user to update their own profile, the same URL applies. (e.g., yourwebsite.tld/wp-admin/profile.php)

Settings > General

Within the Settings menu, General includes an option for allowing users to register their own new account. By default this option is disabled in a new WordPress installation, but if your website has many users, you may elect to enable this and only use your administrator account to promote specific users into roles with more capabilities.

In the following lessons, we’ll dig into each of these screens and the important tasks you can perform within them.


Tip: All User tasks begin with logging into your WordPress administrative area:

yourwebsite.tld/wp-admin/

Top ↑

Update Your Own Profile Update Your Own Profile

  1. On the WordPress Toolbar hover over your username in the upper-right corner of the screen and select Edit My Profile, or on the User menu in the Dashboard select Your Profile.
  2. Scroll down to the Name section, where you can fill in your name, nickname, contact information, biography, and profile picture.

Top ↑

Your Display Name Your Display Name

Your display name is the name shown when browsing content on the website. It typically appears as an author attribution on posts, as well as comments on posts or pages. You may choose to display your WordPress username, any combination of your first and last name, or your specified nickname.

Also note:

  • If you’ve not filled in your full name in the First Name or Last Name fields, these options will not appear in the display name dropdown. Likewise, if your nickname is the same as your username, only one of the two will appear.
  • Some themes may hide authors from posts or pages.

Top ↑

Your Profile Picture Your Profile Picture

By default, changing your profile picture is tied to your Gravatar account. To learn more about using Gravatar visit: https://en.gravatar.com/

Top ↑

Your Email Address Your Email Address

Your email address is required by WordPress, to support system notifications and to be used if password recovery is ever necessary to regain access to your account.

Also note:

  • If you change a user’s email address, including your own, WordPress will automatically email the previous email address with a “Notice of Email Change” message. This is a security feature, to allow a user to report any malicious or suspicious activity.
  • If a user’s email address is changed, by default the Gravatar will update to reflect a photo associated with the new email address. If the old and new email addresses both use the same photo within Gravatar, you may not notice this change.

Top ↑

Add a New User Add a New User

  1. On the User menu in the Dashboard select Add New.
  2. On the Add New User page, create a new user by assigning them a username (the name they will use to log into WordPress), a valid email address, and any other optional details.
  3. Choose an appropriate role for this new user. Learn more about roles below.
  4. When you’ve filled in any details, click the Add New User button at the bottom of the page to save the new user.

Alert: Once a user account is created, the username cannot be changed.

Top ↑

Password Creation Password Creation

By default, the new user’s password will be automatically generated and hidden from you. If you need to know the user’s password, or intend to create a custom password, use the Show Password button. This is an optional step and is not typically necessary in the user creation process.

Also note:

  • A new user will automatically be sent a welcome email by WordPress with their new login information, including the generated password. The user will be prompted to log in and to change their password to one of their liking. If you have assigned them a custom password, they will still have the ability to and will be encouraged to update their password.
  • If you’d like to suppress the welcoming email, you may uncheck the “Send the new user an email about their account” option below. This step is not typically recommended, but may be useful if you’re adding many users in preparation for a website that is not ready to be revealed to its users. Be aware, if a user has not been sent a welcoming email, they may still use their email address to recover their login credentials.

Top ↑

Role Role

A user’s role determines their abilities within the WordPress website—for example, whether they are only allowed to read content or to edit content. To learn more about user roles, review the complete Roles and Capabilities article in the WordPress Codex.

Also note:

  • The default role of a new user will be “Subscriber,” unless you’ve changed this preference within Settings > General > New User Default Role.

Top ↑

Change an Existing User’s Role (Promoting, Demoting, and Disabling Without Deleting) Change an Existing User’s Role (Promoting, Demoting, and Disabling Without Deleting)

Sometimes, it is necessary to change an existing user’s role within WordPress. Common use cases for this are:

  • A user account needs to be disabled temporarily without deleting the user.
  • A loyal user is being promoted within the WordPress website, from a more restricted role like Subscriber, to a role allowing content editing capabilities.

Update a user’s role by locating their profile within the Users table.

  1. On the User menu in the Dashboard select All Users.
  2. In the Users table, a user can be found using the Search Users function, by browsing through the list of users manually, or by filtering the list of users by role. To filter by role, click on the appropriate role above the Users table. You may see Administrator, Subscriber, and other roles.
  3. When the user is located, click on the user’s name to edit their profile, or hover over their name and click Edit below.
  4. On the profile editing screen, scroll down to the Role dropdown to choose a new role for the user.
  5. At the bottom of the page, use the Update User button to apply any changes.

Alert: You can’t downgrade or otherwise restrict access to your own administrator account while logged into that account. To modify your own administrator account, you’ll need to create a new administrator account or use another existing administrator account to log in and downgrade or otherwise change the permissions of your administrator account.

Top ↑

Disable an Existing User by Downgrading Their Role Disable an Existing User by Downgrading Their Role

To disable a user without deleting them from the users list, follow the steps for changing a user’s role, but select “No role for this site” as the new role. This role will still allow logging into the WordPress site, though they will not be able to access the administrative area, effectively freezing their account and access to their content, which will still exist on the website. Note that:

  • When the user’s email address is changed, they will receive an automated “Notice of Email Change” message via email. This message will not reveal the new email address, though the user will become aware of their account being disabled.
  • To fully prevent account access, you would need to change the user’s email address and password. While changing the password temporarily prevents them from logging in, changing the email address will prevent them from regaining access to their account through the password recovery process.

Top ↑

Changing the Role of Multiple Users Changing the Role of Multiple Users

From the Users table, you may choose to modify the role of multiple users. This is possible using the checkboxes to the left of each user in the list of users.

  1. Select the checkboxes next to any users for whom you would like to change the role.
  2. Use the “Change role to” button above to select a new role for these users.
  3. Click the Change button to the right of the selected role to apply the change.

Top ↑

Delete an Existing User and Reassign Their Content to Another User Delete an Existing User and Reassign Their Content to Another User

When removing a user from your WordPress website, you’ll need to decide what to do with any content they’ve authored, including posts, pages, comments, or other content types.

  1. Locate the user to be removed, hover over their username, and click Delete.
  2. On the next screen, confirm the deletion.

Alert: You won’t be able to delete your own administrator account while logged into your administrator account. To delete your own administrator account, you’ll need to create a new administrator account or use another existing administrator account to log in and delete your administrator account.

Top ↑

Reassigning a User’s Content to Another User Reassigning a User’s Content to Another User

If the user being deleted has content associated with their account, you’ll want to determine how to reassign their content to another user as author. As part of the deletion screen, you have two options:

  • Delete all content – This option removes any pages, posts, or comments this user has created. This option is less common in most situations.

Top ↑

Bulk Deletion of Users Bulk Deletion of Users

Just as you have the ability to change the role of multiple users from the Users table, you also have the ability to delete multiple users and to assign all of their content to another single user.

  1. From the Users table, select the checkboxes next to each user in the list you’d like to delete. (You can’t delete your own user account.)
  2. With the Bulk Actions button at the top of the Users table, select Delete from the dropdown.
  3. Click the Apply button to be brought to the delete screen with any applicable options.
  4. Click the Confirm Deletion button to apply changes.

You may be presented with the options to reassign all content to an existing user. This option will apply your selection to all users you’ve marked for deletion. If you’d like to assign different users’ content to different existing users, you’ll need to select each grouping as it’s own bulk action. For example, select some users to delete and assign their content to User A. Then return to the Users table and select other users to delete and assign their content to User B.

Top ↑

Reset a User’s Password, Including Your Own Reset a User’s Password, Including Your Own

To manually reset a user’s password, or to change your own, follow the same steps as editing a user’s profile. You may choose to change a user’s password at any time.

  1. Locate a user to edit in the Users table.
  2. Click the username or hover over the username to click on the Edit link.
  3. Scroll down to the password area and click the Generate Password button to be given a new random password.
  4. Optionally, you may customize this password by placing your cursor into the password field and typing another password.
  5. If your new password is flagged as Very Weak or Weak, then the password is too simple and may pose a security risk. To use a Weak password, you need to enable the Confirm Password option. For best security practices, a Strong password is highly recommended.
  6. Click Update User to save your new password.

Also note:

  • When a user’s password is changed, the user will receive an automatic notification email alerting them to this change. That email will not reveal the old or the new password to them, but is a security feature to alert that user and give them the ability to contact an administrator if they feel this activity is suspicious.
  • If you’re changing your password in your own profile, you have an additional option to log your account out of all devices except your current device. This is a recommended step, particularly when changing your password.

Top ↑

Customize the View of the Users Table Customize the View of the Users Table

To specify which columns to view on the Users table, or to change the default number of users to list per page, use the Screen Options panel in the upper-right.

  1. Click on Screen Options to open the panel.
  2. Optionally uncheck any columns you wish to hide from the Users table.
  3. Optionally change the number of users to list per page in the paginated results.
  4. Click Apply to save changes.

You can update the Screen Options at any time to reveal hidden columns or update the number of preferred rows of users. For additional modifications to viewing and managing the Users table, there are many plugins available at WordPress.org.

Top ↑

Allow Users to Create Their Own New Account Allow Users to Create Their Own New Account

It is possible to give visitors to your website the ability to register their own accounts, to minimize the need for you to create new users.

  1. On the Dashboard go to Settings > General.
  2. On the General Settings page, scroll down to Membership.
  3. Check the box for the “Anyone can register” option.
  4. Scroll to the bottom of the page and click Save Changes.
  5. Instruct users to visit yourwebsite.tld/wp-login.php?action=register to create their own account.

Also note:

  • Depending on your theme, there may be a Register link to invite visitors to the registration URL. This may be in your footer or within a sidebar widget.
  • If you’re logged into WordPress with any account, including your own, you will not see the Register link presented on the website when previewing the website. To look for the “Register” link, either log out of your account, or browse to your WordPress website within another browser where you are not already logged into your account.
  • If you allow users to register their own accounts, it is recommended for the default user role to be “Subscriber,” unless new users should be allowed to create content within your WordPress website.

Warning: Do not allow new users to be automatically assigned an administrator role, as they would be able to disable or delete your administrator account.


Top ↑

Quiz Quiz

Top ↑

Which account role is required for managing user accounts in WordPress? Which account role is required for managing user accounts in WordPress?

  1. Editor
  2. Administrator
  3. Manager
  4. Any authorized account

Correct Answer: 2. Administrator

Top ↑

Which one of the following statements is false? Which one of the following statements is false?

  1. An editor can manage the pages and posts of other users.
  2. You can delete a user account and assign their posts and pages to another user.
  3. You cannot change the display name of your account on posts and pages.
  4. You can force a reset of a user’s password.

Correct Answer: 3. You cannot change the display name of your account on posts and pages.

Top ↑

What happens if you change the email address for a user account? What happens if you change the email address for a user account?

  1. WordPress sends a “Notice of Email Change” message.
  2. The username will be changed to match the email account.
  3. The user will not be able to login with their old username.
  4. You cannot change the email on an account.

Correct Answer: 1. WordPress sends a “Notice of Email Change” message.

Top ↑

If visitors are allowed to register for their own accounts, what should their default role be? If visitors are allowed to register for their own accounts, what should their default role be?

  1. Subscriber
  2. Editor
  3. Administrator
  4. It depends on the level of engagement I’d like them to have

Correct Answer: 4. It depends on the level of engagement I’d like them to have (and Administrator should not be the default)