Browse list of users

From MoodleDocs


New feature
in Moodle 4.4!

An administrator can browse and search the list of all user accounts in Site administration > Users > Accounts > Browse list of users.

Browse list of users

With a better filtering method, administrators can search for particular users or groups of users, select them and perform bulk actions such as deleting (prior to which a warning will display.) User pictures now show in the list alongside user details.

If you are using Email-based self-registration and a user has a problem confirming their account, you can confirm their account for them by clicking the confirm link opposite their name. You can also suspend/unsuspend a user from the cog icon to the right of their details.


You can search for users, using particular criteria or Filters. These criteria can be configured to display data as per the following limits:

  • contains
  • doesn't contain
  • is equal to
  • starts with
  • ends with
  • is empty
  • is not empty

For example, if you wished to search for all users with John in their First Name or Last Name you would enter 'John' in the Full name filter and select the 'contains' limit.


Using wildcards

Wildcards may be used when searching to represent one or more characters. There are two wildcards:

  • % The percent sign represents zero, one, or multiple characters
  • _ The underscore represents a single character (Note: MS Access uses a question mark '?' instead of the underscore '_').

These wildcards can be escaped, if needed, to search users containing them, using a backslash '\':

  • A_B will find all the users starting with an A, followed by any character and then B (i.e. AxB or A2B, but not AxxB).
  • A\_B will find users starting exactly with 'A_B'.

Deleting an account

An account can be deleted by clicking the delete icon opposite the user's name.

When an account is deleted, the MD5 hash of the username is stored as the email address. The email address + timestamp for when the account was deleted is stored as the username.

Warning: Deleting an account results in user data being permanently deleted. If you wish to retain any data, you should instead suspend the user's account.

If an account is deleted by mistake, it can be partially restored by resetting the deleted flag to zero in the database and resetting the username and email address. User profile details, user preferences, enrolments, and group and cohort membership data cannot be recovered. Grades may be recovered by re-enrolling the user into their courses and ticking the 'Recover user's old grades if possible' checkbox in the enrolment options. Forum posts are not deleted.

See the forum discussion Is there a way to completely delete users including all their data? for details of how manual deletion differs from user requests for data deletion, plus information about future developments.

Suspending an account

An account can be suspended as follows:

  1. Click the edit icon opposite the user's name
  2. On the user profile edit page tick the 'Suspended account' checkbox
  3. Scroll to the bottom of the page and click the 'Update profile' button

Suspended user accounts cannot log in or use web services, and any outgoing messages are discarded.

See also