Docs Menu

User Management Methods


For details on specific methods, including syntax and examples, click on the specific method to go to its reference page.

Authenticates a user to a database.
Changes an existing user's password.
Creates a new user.
Removes a single user.
Deletes all users associated with a database.
Returns information about the specified user.
Returns information about all users associated with a database.
Grants a role and its privileges to a user.
Deprecated. Removes a user from a database.
Removes a role from a user.
Updates user data.
Prompts for the password as an alternative to specifying passwords directly in various mongosh user authentication/management methods.
Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.


  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.