Create a Database User for Your Cluster
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.
Atlas for Government Considerations
Database users who authenticate with
SCRAM must use SCRAM-SHA-256
.
Procedure
To add a SCRAM-SHA-256
-authenticated database user to your cluster:
Set the new user's Username and Password.
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.
Note
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.
Tip
See also: Atlas documentation
To learn more about configuring database users or to add a user with an alternative authentication method, see Configure Database Users.
Next steps
To connect and insert data into your cluster as a database user, follow the Atlas procedures:
Tip
See also: Atlas documentation
To import existing data from JSON
or CSV
files, see
Load File with mongoimport.