Created
December 6, 2019 13:19
-
-
Save cnmoro/e45d366ce0e3866f32ee71a025f65e61 to your computer and use it in GitHub Desktop.
MongoDB Create ReadOnly
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
db.createUser( | |
{ | |
user: "USR", | |
pwd: "PASS", | |
roles: [ | |
{ role: "read", db: "DB1" }, | |
{ role: "read", db: "DB2" }, | |
{ role: "read", db: "DB3" } | |
] | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment