Navigation
This version will reach end of life on Feb 2018. To upgrade, go to the 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.