Docs Menu

Docs HomeMongoDB Manual

User Management Methods


For details on a specific method, including syntax and examples, click on the link to the method's 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.
←  Bulk.toString()db.auth() →
Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.