This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

Configure MongoDB Authentication and Authorization

Your MongoDB deployments can use the access control mechanisms described here. You specify the authentication settings when adding the deployment. You can also edit the security settings after adding a deployment, as described on this page.

If a deployment uses access control, Monitoring and Backup must authenticate to the deployment as MongoDB users with appropriate access. If you are using the MongoDB Agent with Automation to manage your MongoDB deployments, you will enable and configure authentication through the Ops Manager Application.

If you are not using the MongoDB Agent with Automation to manage your MongoDB deployments, you must activate and configure Monitoring and Backups.


With access control enabled, you must create MongoDB users so that clients can access your databases.

If you are using the MongoDB Agent with Automation to manage your MongoDB deployments, Ops Manager automatically creates users for the agents when you enable access control. The user created for the MongoDB Agent has privileges to administrate and manage other users. As such, the first user you create can have any role.

When you select an Authentication Mechanism for your Ops Manager group, this enables access control for all the deployments in your Ops Manager group.


To avoid inconsistencies, use the Ops Manager interface to manage users and roles for MongoDB deployments.

For more information on MongoDB access control, see the Authentication and Authorization pages in the MongoDB manual.

Access Control Mechanisms


MongoDB supports the following implementations of challenge-response mechanisms for authenticating users with passwords.

In the following table, the default authentication mechanism for the release series is marked with check square icon and acceptable authentication mechanisms are marked with check circle icon .

4.0.x   check circle icon check square icon
3.6.x check circle icon check square icon  
3.4.x check circle icon check square icon  
3.2.x check circle icon check square icon  
3.0.x check circle icon check square icon  
Pre-3.0 check square icon    

No Support for SCRAM-SHA-256 Auth for Ops Manager Backing Databases

Although MongoDB 4.0 supports the SCRAM-SHA-256 authentication mechanism, Ops Manager does not support this authentication mechanism for its backing databases.

To enable SCRAM-SHA-1 or SCRAM-SHA-256 when using:


MongoDB Enterprise supports proxy authentication of users. This allows administrators to configure a MongoDB cluster to authenticate users by proxying authentication requests to a specified LDAP service.

To enable LDAP for your Ops Manager project when using:

  • MongoDB Agent with Automation, see Enable LDAP Authentication for your Ops Manager Project.
  • MongoDB Agent Backup without Automation, see Configure Backup for LDAP Authentication.
  • MongoDB Agent Monitoring without Automation, see Configure Monitoring for LDAP Authentication.


MongoDB Enterprise supports authentication using a Kerberos service. Kerberos is an IETF (RFC 4120) standard authentication protocol for large client/server systems.

To use MongoDB with Kerberos, you must have a properly configured Kerberos deployment, configure Kerberos service principals for MongoDB, and add the Kerberos user principal.

To enable Kerberos for your Ops Manager project when using:

Specify Kerberos as the MongoDB process’s authentication mechanism when adding or editing the deployment.


MongoDB supports x.509 certificate authentication for use with a secure TLS/SSL connection. The x.509 client authentication allows clients to authenticate to servers with certificates rather than with a username and password.

To enable x.509 authentication for your Ops Manager project when using:

You can also use X.509 certificates for membership authentication for the processes that Ops Manager monitors.

Edit Host Credentials

You can configure the deployment to use the authentication mechanism from the Ops Manager interface. The Manage MongoDB Users and Roles tutorials describe how to configure an existing deployment to use each authentication mechanism.