- Security >
- Enable Access Control
Enable Access Control¶
On this page
Enabling access control on a MongoDB deployment enforces authentication. With access control enabled, users are required to identify themselves and can only perform actions that adhere to the permissions granted by the roles assigned to their user.
If you would like to enable access control for a standalone MongoDB instance, please refer to one of the following resources:
- Use SCRAM to Authenticate Clients
- Use x.509 Certificates to Authenticate Clients
- Configure MongoDB with Kerberos Authentication on Linux
- Configure MongoDB with Kerberos Authentication on Windows
- Configure MongoDB with Kerberos Authentication and Active Directory Authorization
- Authenticate Using SASL and LDAP with ActiveDirectory
- Authenticate Using SASL and LDAP with OpenLDAP
- Authenticate and Authorize Users Using Active Directory via Native LDAP
If you would like to enable access control for a replica set or a sharded cluster, please refer to one of the following resources:
- Deploy Replica Set With Keyfile Authentication
- Update Replica Set to Keyfile Authentication
- Update Replica Set to Keyfile Authentication (No Downtime)
- Deploy Sharded Cluster with Keyfile Authentication
- Update Sharded Cluster to Keyfile Authentication
- Update Sharded Cluster to Keyfile Authentication (No Downtime)
- Configure MongoDB with Kerberos Authentication on Linux
- Configure MongoDB with Kerberos Authentication on Windows
- Configure MongoDB with Kerberos Authentication and Active Directory Authorization
- Authenticate Using SASL and LDAP with ActiveDirectory
- Authenticate Using SASL and LDAP with OpenLDAP
- Authenticate and Authorize Users Using Active Directory via Native LDAP
Next Steps¶
To create additional users, see Create a User.
To manage users, assign roles, and create custom roles, see Manage Users and Roles.