-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
Currently, there are two different action types with different roles assigned for the `listDatabases` command and the `$listDatabases` aggregation stage. The roles assigned for each action type are the following:
`listDatabases` action type (`listDatabases` cmd):
- readWriteAnyDatabase
- readAnyDatabase
- userAdminAnyDatabase
- dbAdminAnyDatabase
- clusterMonitor
- backup
`aggregationListDatabases` action type (`$listDatabases` aggregation stage):
- clusterMonitor
- clusterManager
Since it is expected that all the roles that can execute the `listDatabases` command can also execute the `$listDatabases` aggregation stage, the action type for both should be the same and should be assigned to the roles that were initially assigned to the `listDatabases` command.