You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/challenge/rbac.mdx
+29-6Lines changed: 29 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@ sidebar_position: 2
3
3
---
4
4
5
5
# 👐 RUN : RBAC Challenge
6
-
:::tip
7
6
8
7
:::info
9
8
The provided scripts are incomplete. Replace all `<CODE_BLOCK>` with the correct code to complete the lab.
@@ -13,7 +12,13 @@ The provided scripts are incomplete. Replace all `<CODE_BLOCK>` with the correct
13
12
Hint: Remember to add `--projectId {project_id}`
14
13
Refer to the documentation: [atlas dbusers](https://www.mongodb.com/docs/atlas/cli/current/command/atlas-dbusers-create/) , [atlas customDbRoles](https://www.mongodb.com/docs/atlas/cli/current/command/atlas-customDbRoles-create/)
15
14
:::
16
-
### 1. Create a user for "MyNewCluster" database only.
15
+
### 1. Create a user for "MyNewCluster" database with role-based access.
16
+
17
+
Create a new user with the built-in role `readWriteAnyDatabase` and the username and password below.
18
+
19
+
The user access should be scoped to the `myNewCluster` cluster. Use the `--scope` option.
20
+
21
+
Refer to the documentation: https://www.mongodb.com/docs/atlas/cli/current/command/atlas-dbusers-create/.
17
22
18
23
```python
19
24
# Create a user:'myNewClusterAdmin', password:'myNewClusterAdminPass', role: 'readWriteAnyDatabase'
0 commit comments