Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3358

Give example of MMS backup user for 2.6 and pre-2.6

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • mms-1.4
    • Cloud Manager
    • None

    Description

      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

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            daniel.coupal@mongodb.com Daniel Coupal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 41 weeks, 1 day ago