You must create a database user to access your cluster. For security purposes, AtlasGov requires clients to authenticate as MongoDB database users to access clusters.
Database users are separate from AtlasGov users:
- Database users can access databases hosted in AtlasGov.
- AtlasGov users can log in to MongoDB Atlas for Government but do not have access to MongoDB databases.
Database users who authenticate with
SCRAM must use
To add a
SCRAM-SHA-256-authenticated database user to your cluster:
You'll use this username and password combination to grant a user access to databases and collections in your cluster in this AtlasGov project.
To use a password auto-generated by AtlasGov, click Autogenerate Secure Password.
If you use special characters in your password, you will need to escape them later in the connection string that you will use to connect to your cluster. To learn more, see Special Characters in Connection String Password.
To learn more about configuring database users or to add a user with an alternative authentication method, see Configure Database Users.
To connect and insert data into your cluster as a database user, follow the Atlas procedures:
To import existing data from
CSV files, see
Load File with mongoimport.