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: src/content/docs/fundamentals/account/account-security/scim-setup/index.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ Expectations for user lifecycle management with SCIM:
34
34
## Limitations
35
35
36
36
- If a user is the only Super Administrator on an Enterprise account, they will not be deprovisioned.
37
+
- It is possible to unintentionally remove all account Super Administrators by misconfiguring SCIM groups. Refer to [SCIM troubleshooting](/fundamentals/account/account-security/scim-setup/troubleshooting/) for more information.
## Restore Super Administrator after group misconfiguration
9
+
10
+
If you have removed all Super Administrators mistakenly, you can restore the role to account member(s) using the Account API Token you created for SCIM provisioning.
11
+
12
+
First, fetch a list of account members and find the member ID for the user you want to restore Super Admin to via [list members].(/api/resources/accounts/subresources/members/methods/list/)
13
+
14
+
```curl
15
+
curl -X GET "https://api.cloudflare.com/client/v4/accounts/{account_id}/members" \
16
+
-H "Authorization: Bearer YOUR_SCIM_AOT" \
17
+
-H "Content-Type: application/json"
18
+
```
19
+
20
+
Then restore the Super Admin role to that member via [update member](/api/resources/accounts/subresources/members/methods/update/)
21
+
22
+
```curl
23
+
curl -X PUT "https://api.cloudflare.com/client/v4/accounts/{account_id}/members/{member_id}" \
24
+
-H "Authorization: Bearer YOUR_SCIM_AOT" \
25
+
-H "Content-Type: application/json" \
26
+
-d '{
27
+
"roles": ["33666b9c79b9a5273fc7344ff42f953d"]
28
+
}'
29
+
```
30
+
31
+
:::note
32
+
33666b9c79b9a5273fc7344ff42f953d is the Super Administrator role ID
0 commit comments