Docs HomeMongoDB Manual

User Management Commands

Note

For details on a specific command, including syntax and examples, click on the link to the command's reference page.

NameDescription
createUserCreates a new user.
dropAllUsersFromDatabaseDeletes all users associated with a database.
dropUserRemoves a single user.
grantRolesToUserGrants a role and its privileges to a user.
revokeRolesFromUserRemoves a role from a user.
updateUserUpdates a user's data.
usersInfoReturns information about the specified users.