Related to SERVER-32942
That ticket changed the behavior of show collections to : If the shell obtains an Unauthorized error, which it would if it ran the listCollections command against an older version of the server which didn't respect authorizedCollections, it will attempt to parse out the set of collections it has been granted privileges on from the output of connectionStatus.
The same pattern should be applied to show dbs (listDatabases)
- depends on
-
SERVER-37526 IDLify listDatabases command
- Closed
-
SERVER-37551 Add {authorizedDatabases:bool} param to {listDatabases} command.
- Closed
- is related to
-
SERVER-35638 Shell auto-completion blocks when listCollection is waiting for locks
- Closed
- related to
-
SERVER-32942 mongo shell: for users authorized to certain namespace, make discovery easy
- Closed