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

clusterMonitor role user is not able to fetch collections from db

    XMLWordPrintableJSON

Details

    Description

      Description

      running with auth 

      user role : clusterMonitor , db:admin

       

      In mongoDB documentation , clusterMonitor user can read all the collection in all the db but 

      in mongodb 3.6.3 , when I have tried to fetch the collections from the db it shows that authorisation error - user is not authorise to run the command - 

      Command failed with error 13: 'not authorized on test to execute command { listCollections: 1, cursor:

      { batchSize: 0 }

      , $db: "test", lsid: { id: UUID("71939577-10f4-41ca-b759-d170b6fca2b6") } }' on server 10.10.30.12:27017. The full response is { "ok" : 0.0, "errmsg" : "not authorized on test to execute command { listCollections: 1, cursor:

      { batchSize: 0 }

      , $db: \"test\", lsid: { id: UUID(\"71939577-10f4-41ca-b759-d170b6fca2b6\") } }", "code" : 13, "codeName" : "Unauthorized" }

       

       

       

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            rmahor06@gmail.com rahul mahor
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago