-
Type: Bug
-
Resolution: Won't Do
-
Priority: Major - P3
-
Affects Version/s: 3.6.6
-
Component/s: Server
-
Labels:
-
Environment:MongoDB 3.6.3 .
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" }