readAnyDatabase |
Provides the same read-only permissions as read, except it applies to all but the local and config databases in the cluster. The role also provides the listDatabases action on the cluster as a whole.
For the specific privileges granted by the role, see readAnyDatabase.
Changed in version 3.4: Prior to 3.4, readAnyDatabase includes local and config databases. To provide read privileges on the local database, create a user in the admin database with read role in the local database. See also clusterManager role for access to the config and local databases.
|
readWriteAnyDatabase |
Provides the same read and write permissions as readWrite, except it applies to all but the local and config databases in the cluster. The role also provides the listDatabases action on the cluster as a whole.
For the specific privileges granted by the role, see readWriteAnyDatabase.
Changed in version 3.4: Prior to 3.4, readWriteAnyDatabase includes local and config databases. To provide readWrite privileges on the local database, create a user in the admin database with readWrite role in the local database. See also clusterManager role for access to the config and local databases.
|
userAdminAnyDatabase |
Provides the same access to user administration operations as userAdmin, except it applies to all but the local and config databases in the cluster.
Since the userAdminAnyDatabase role allows users to grant any privilege to any user, including themselves, the role also indirectly provides superuser access.
For the specific privileges granted by the role, see userAdminAnyDatabase.
Changed in version 3.4: Prior to 3.4, userAdminAnyDatabase includes local and config databases.
|
dbAdminAnyDatabase |
Provides the same access to database administration operations as dbAdmin, except it applies to all but the local and config databases in the cluster. The role also provides the listDatabases action on the cluster as a whole.
For the specific privileges granted by the role, see dbAdminAnyDatabase.
Changed in version 3.4: Prior to 3.4, dbAdminAnyDatabase includes local and config databases. To provide dbAdmin privileges on the local database, create a user in the admin database with dbAdmin role in the local database. See also clusterManager role for access to the config and local databases.
|