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/setup/account/account-security/scim-setup.mdx
+109Lines changed: 109 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,6 +155,115 @@ Refer to the list of [Roles](/fundamentals/setup/manage-members/roles/) for more
155
155
To successfully provision with Microsoft Entra ID, the `user principal name` and `email` fields must match. These values are case-sensitive.
156
156
:::
157
157
158
+
### Automate Cloudflare's SCIM integration
159
+
160
+
Cloudflare's SCIM integration requires one external application per account. Customers with many accounts may want to automate part of the setup to save time and reduce the amount of time spent in the Entra administrative UI.
161
+
162
+
The initial setup of creating the non-gallery applications and adding the provisioning URL and API key are scriptable via API, but the rest of the setup is dependent on your specific need and IDP configuration.
163
+
164
+
1. Get an access token
165
+
166
+
Get an Entra access token. Note that the example below is using the Azure CLI.
167
+
168
+
```
169
+
# Using azure-cli
170
+
az login
171
+
az account get-access-token --resource https://graph.microsoft.com
172
+
173
+
(payload with accessToken returned)
174
+
```
175
+
2. Create a new application via template.
176
+
177
+
The template ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 is the suggested template to create non-gallery apps in the Entra docs. Replace `<accessToken>` and `displayName` with your values.
178
+
179
+
```curl title="Example request"
180
+
curl -X POST 'https://graph.microsoft.com/v1.0/applicationTemplates/8adf8e6e-67b2-4cf2-a259-e3dc5476c621/instantiate' \
181
+
--header 'Content-Type: application/json' \
182
+
--header 'Authorization: Bearer <accessToken>' \
183
+
--data-raw '{
184
+
"displayName": "Entra API create application test"
"appDisplayName": "Entra API create application test",
208
+
// ...snipped rest of JSON payload
209
+
}
210
+
```
211
+
212
+
3. Create a provisioning job
213
+
214
+
To enable provisioning, you will also need to create a job. Note the SERVICE_PRINCIPAL_ID in the previous request will be used in the request below. The SCIM templateId is an Entra provided template.
215
+
216
+
```curl title="Example request"
217
+
curl -X POST 'https://graph.microsoft.com/v1.0/servicePrincipals/<SERVICE_PRINCIPAL_ID>/synchronization/jobs' \
0 commit comments