Last active
December 27, 2021 22:26
-
-
Save lpsm-dev/acb1eef10f8a1ca4146f7224949464b3 to your computer and use it in GitHub Desktop.
[Database] - Create User Read Only Policy in MongoDB π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use database | |
db.createUser( | |
{ | |
user: "validation", | |
pwd: "123456", | |
roles: [{role: "read", db: "ato"}] | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create User in MongoDB
This is a simple setup used to create a user in MongoDB. Enjoy π!