This version has reached end of life on October 2016. Learn more about upgrading your version of MongoDB.

User Management Commands

Name Description
createUser Creates a new user.
updateUser Updates a user’s data.
dropUser Removes a single user.
dropAllUsersFromDatabase Deletes all users associated with a database.
grantRolesToUser Grants a role and its privileges to a user.
revokeRolesFromUser Removes a role from a user.
usersInfo Returns information about the specified users.