diff --git a/documentation/docs/install-pmm/install-pmm-client/connect-database/mongodb.md b/documentation/docs/install-pmm/install-pmm-client/connect-database/mongodb.md index 90b1991eb5..ea99d803fc 100644 --- a/documentation/docs/install-pmm/install-pmm-client/connect-database/mongodb.md +++ b/documentation/docs/install-pmm/install-pmm-client/connect-database/mongodb.md @@ -53,31 +53,29 @@ Run the example codes below in a `mongo` session to: "roles": [] }); -=== "Ceate/update user and assign created roles" +=== "Create/update user and assign created roles" db.getSiblingDB("admin").createUser({ user: "pmm", pwd: "pmm", roles: [ - { role: "explainRole", db: "admin" }, - { role: "clusterMonitor", db: "admin" }, - { role: "read", db: "local" }, - { "db" : "admin", "role" : "readWrite", "collection": "" }, - { "db" : "admin", "role" : "backup" }, - { "db" : "admin", "role" : "clusterMonitor" }, - { "db" : "admin", "role" : "restore" }, - { "db" : "admin", "role" : "pbmAnyAction" } + { db: "admin", role: "explainRole" }, + { db: "local", role: "read" }, + { db: "admin", role: "readWrite", collection: "" }, + { db: "admin", role: "backup" }, + { db: "admin", role: "clusterMonitor" }, + { db: "admin", role: "restore" }, + { db: "admin", role: "pbmAnyAction" } ] }) db.getSiblingDB("admin").updateUser("pmm", { roles: [ - { role: "explainRole", db: "admin" }, - { role: "clusterMonitor", db: "admin" }, - { role: "read", db: "local" }, - { "db" : "admin", "role" : "readWrite", "collection": "" }, - { "db" : "admin", "role" : "backup" }, - { "db" : "admin", "role" : "clusterMonitor" }, - { "db" : "admin", "role" : "restore" }, - { "db" : "admin", "role" : "pbmAnyAction" } + { db: "admin", role: "explainRole" }, + { db: "local", role: "read" }, + { db: "admin", role: "readWrite", collection: "" }, + { db: "admin", role: "backup" }, + { db: "admin", role: "clusterMonitor" }, + { db: "admin", role: "restore" }, + { db: "admin", role: "pbmAnyAction" } ] })