Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
0.25
Description
The page for the connectionStatus command (https://docs.mongodb.org/manual/reference/command/connectionStatus/) does not mention the showPrivileges: true option. This option provides valuable extra information about the privileges that are associated with the roles of logged-in users.
> db.runCommand({ connectionStatus:1})
|
{
|
"authInfo" : {
|
"authenticatedUsers" : [
|
{
|
"user" : "onlyFind",
|
"db" : "test"
|
}
|
],
|
"authenticatedUserRoles" : [
|
{
|
"role" : "onlyFind",
|
"db" : "test"
|
}
|
]
|
},
|
"ok" : 1
|
}
|
> db.runCommand({ connectionStatus:1, showPrivileges: true})
|
{
|
"authInfo" : {
|
"authenticatedUsers" : [
|
{
|
"user" : "onlyFind",
|
"db" : "test"
|
}
|
],
|
"authenticatedUserRoles" : [
|
{
|
"role" : "onlyFind",
|
"db" : "test"
|
}
|
],
|
"authenticatedUserPrivileges" : [
|
{
|
"resource" : {
|
"db" : "test",
|
"collection" : "test"
|
},
|
"actions" : [
|
"find"
|
]
|
}
|
]
|
},
|
"ok" : 1
|
}
|
Attachments
Issue Links
- related to
-
SERVER-25735 connectionStatus only returns info for most recently auth'd user
-
- Closed
-