Skip to content

Commit 92fc3fd

Browse files
Merge pull request #279168 from seesharprun/cosmos-mongodb-rbac-roles
Cosmos DB | Update MongoDB RU RBAC built-in roles guidance
2 parents eb710d3 + 7c2b962 commit 92fc3fd

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

articles/cosmos-db/mongodb/how-to-setup-rbac.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,24 @@ Another column called `userId` has been added to the `MongoRequests` table in th
6565
## Built-in Roles
6666
These roles already exist on every database and don't need to be created.
6767

68-
### read
69-
Has the following privileges: changeStream, collStats, find, killCursors, listIndexes, listCollections
70-
71-
### readWrite
72-
Has the following privileges: collStats, createCollection, dropCollection, createIndex, dropIndex, find, insert, killCursors, listIndexes, listCollections, remove, update
73-
74-
### dbAdmin
75-
Has the following privileges: collStats, createCollection, createIndex, dbStats, dropCollection, dropDatabase, dropIndex, listCollections, listIndexes, reIndex
76-
77-
### dbOwner
78-
Has the following privileges: collStats, createCollection, createIndex, dbStats, dropCollection, dropDatabase, dropIndex, listCollections, listIndexes, reIndex, find, insert, killCursors, listIndexes, listCollections, remove, update
68+
| | `read` | `readWrite` | `dbAdmin` | `dbOwner` |
69+
| --- | --- | --- | --- | --- |
70+
| **`changeStream`** | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
71+
| **`collStats`** | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
72+
| **`listCollections`** | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
73+
| **`listIndexes`** | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
74+
| **`createCollection`** | ✖️ No | ✅ Yes | ✅ Yes | ✅ Yes |
75+
| **`createIndex`** | ✖️ No | ✅ Yes | ✅ Yes | ✅ Yes |
76+
| **`dropCollection`** | ✖️ No | ✅ Yes | ✅ Yes | ✅ Yes |
77+
| **`dbStats`** | ✖️ No | ✖️ No | ✅ Yes | ✅ Yes |
78+
| **`dropDatabase`** | ✖️ No | ✖️ No | ✅ Yes | ✅ Yes |
79+
| **`reIndex`** | ✖️ No | ✖️ No | ✅ Yes | ✅ Yes |
80+
| **`find`** | ✅ Yes | ✅ Yes | ✖️ No | ✅ Yes |
81+
| **`killCursors`** | ✅ Yes | ✅ Yes | ✖️ No | ✅ Yes |
82+
| **`dropIndex`** | ✖️ No | ✅ Yes | ✅ Yes | ✅ Yes |
83+
| **`insert`** | ✖️ No | ✅ Yes | ✖️ No | ✅ Yes |
84+
| **`remove`** | ✖️ No | ✅ Yes | ✖️ No | ✅ Yes |
85+
| **`update`** | ✖️ No | ✅ Yes | ✖️ No | ✅ Yes |
7986

8087
## Azure CLI Setup (Quickstart)
8188
We recommend using the cmd when using Windows.

0 commit comments

Comments
 (0)