|
This applies to both the On-Prem and Cloud documentation:
https://mms.mongodb.com/help-hosted/current/reference/authentication/
https://mms.mongodb.com/help/reference/authentication/
On those pages, we did split the examples of permissions for the MMS monitoring agent user for MMS 2.6 and 2.4.
Unfortunately, we missed the MMS backup agent example.
This one also must be spitted, as the current example does not work for 2.6.
MongoDB shell version: 2.6.0
|
connecting to: test
|
> use admin
|
> db.addUser( { user: "backup2",
|
... pwd: "backup2",
|
... roles: [ "clusterAdmin",
|
... "readAnyDatabase",
|
... "userAdminAnyDatabase"
|
... ],
|
... otherDBRoles: { local: ['readWrite'],
|
... admin: ['readWrite'] } } )
|
WARNING: The 'addUser' shell helper is DEPRECATED. Please use 'createUser' instead
|
2014-05-06T15:19:42.672-0700 Error: couldn't add user: "otherDBRoles" is not a valid argument to createUser at src/mongo/shell/db.js:1004
|
|