MongoDB
How to Acquire MongoDB Credentials?
Proceed with the outlined steps to acquire MongoDB credentials.
Step-by-step walkthrough: How to obtain MongoDB credentials
1
Log in to the MongoDB Atlas dashboard.
2
Database Access
From the dashboard, click on Database Access
under Security
![](https://assets.superjoin.ai/images/mongodb/mongo-s1.png)
3
Add User
Click on the + ADD NEW DATABASE USER
button.
![](https://assets.superjoin.ai/images/mongodb/mongo-s2.png)
4
Auth Method
On the Add new Database User
modal dialog, choose Password
for the Authentication Method
.
![](https://assets.superjoin.ai/images/mongodb/mongo-s3.png)
5
Read-Only Setup
In the Password Authentication
section, set the username to READ_ONLY_USER in the first text box and set a password in the second text box.
![](https://assets.superjoin.ai/images/mongodb/mongo-s7.png)
6
User Privileges
Under Database User Privileges
, click on Select one built-in role for this user
under Built-in Role
and choose Only read any database
.
![](https://assets.superjoin.ai/images/mongodb/mongo-s4.png)
7
Give Access
Enable Restrict Access to Specific Clusters/Federated Database instances
and enable only those clusters/database that you wish to replicate.
![](https://assets.superjoin.ai/images/mongodb/mongo-s5.png)
8
Save User
Click on Add User
at the bottom to save the user.
![](https://assets.superjoin.ai/images/mongodb/mongo-s6.png)