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

3

Add User

Click on the + ADD NEW DATABASE USER button.

4

Auth Method

On the Add new Database User modal dialog, choose Password for the Authentication Method.

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.

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.

7

Give Access

Enable Restrict Access to Specific Clusters/Federated Database instances and enable only those clusters/database that you wish to replicate.

8

Save User

Click on Add User at the bottom to save the user.

Setting up MongoDB