Pcornel
Browse topics
Options
Recent
Favorites
Identity · Technical reference

SCIM

Direct answer

SCIM (System for Cross-domain Identity Management) 2.0 is a REST and JSON standard for creating, updating and removing users and groups in another system. Identity providers use it to provision and deprovision accounts in SaaS applications.

When to use this

Use it when accounts in an application must follow the identity provider: create on assignment, update on attribute change, disable or delete on leave — instead of manual or just-in-time account creation.

First 30 seconds

1. Is the user in provisioning scope (assigned / filter)?

2. What does the provisioning log say for that user?

3. Does the matching attribute value exist exactly once in the app?

4. Is the job healthy or in quarantine (credentials, endpoint)?

Operational verification

source change (assignment or attribute) → IdP provisioning cycle → scope filter → match on matching attribute → SCIM POST/PATCH/DELETE → HTTP status → provisioning log

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
SCIM 2.0 per RFC 7643/7644; Microsoft Entra provisioning service as the IdP example.
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSCIM 2.0 per RFC 7643/7644; Microsoft Entra provisioning service as the IdP example.
Scope / prerequisiteUse it when accounts in an application must follow the identity provider: create on assignment, update on attribute cha…
What next?2 suggested next steps
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Read-only Verification Verify boundary
# Does the application know the user? (bearer token issued for the SCIM endpoint)
curl -s -H "Authorization: Bearer <token>" \
  'https://app.example.com/scim/v2/Users?filter=userName%20eq%20%22anna%40example.com%22'

# What does the server support?
curl -s -H "Authorization: Bearer <token>" https://app.example.com/scim/v2/ServiceProviderConfig

A ListResponse with totalResults: 1 and "active": true means the account exists and is enabled. totalResults: 0 while the IdP shows the user in scope means provisioning has not reached the user or matched a different value. More than one result means duplicates — fix before the next cycle.

In Microsoft Entra, open the enterprise application → Provisioning for job status and Provisioning logs filtered by the user; Provision on demand runs one user through the cycle immediately and shows each step.

Step 2 Common mistakes Narrow the fault
  • Assuming SSO also creates and removes accounts — without SCIM or JIT provisioning, leavers keep their app accounts.
  • Using email as the matching attribute when emails change on marriage or rename.
  • Assigning access through nested groups that the provisioning service does not expand.
  • Editing provisioned users or groups by hand in the app, then being surprised when the next cycle overwrites them.
  • Long-lived SCIM bearer tokens with no owner or rotation.
Step 3 Troubleshooting Narrow the fault

User not created. Not in scope (not assigned, or only through a nested group), or a required target attribute is empty in the source. The provisioning log names the missing attribute.

409 conflict / uniqueness. The app already has an account with that userName or email that the IdP did not match. Align the matching attribute or link the existing account.

Leaver still active in the app. Check that the user left scope or was disabled in the source and that a cycle has run since. Some apps ignore active: false and need DELETE, or keep sessions alive until they expire.

Job in quarantine. Usually an expired or revoked SCIM token or an unreachable endpoint. Fix credentials and test the connection; the job leaves quarantine on the next successful cycle.

Key points

SSO authenticates; SCIM provisions. The IdP is the SCIM client, the application is the SCIM server. Matching attribute (usually userName) links the two records; get it wrong and you create duplicates. Deprovisioning is usually active: false, not delete.

Key checks
  • IdP provisioning logs (e.g. Entra Provisioning logs) — every create, update, disable and the error.
  • GET /scim/v2/Users?filter=userName eq "anna@example.com" — does the app have the user?
  • GET /scim/v2/ServiceProviderConfig — which features (PATCH, filter, bulk, ETag) the app supports.
ReferenceWhat it is2 sections · depth on demand

Direct Answer

SCIM 2.0 is a standard REST API for managing users and groups across systems. The identity provider acts as the SCIM client and calls the application's SCIM server endpoints — /Users and /Groups — to create accounts when someone is assigned, update them when attributes change, and disable them (active: false) when they leave. SCIM handles the account lifecycle; SSO (SAML or OpenID Connect) handles sign-in. Most enterprise SaaS applications support both.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Standards

  • RFC 7643 — core schema: User (userName, name, emails, active, groups…), Group (displayName, members) and the Enterprise User extension (employeeNumber, department, manager).
  • RFC 7644 — protocol: HTTP methods, endpoints, filtering, PATCH, bulk, ETags, errors.

Endpoints and methods

RequestPurpose
GET /Users?filter=userName eq "anna@example.com"Find a user (match before create)
POST /UsersCreate
PATCH /Users/{id}Partial update (add/replace/remove operations)
PUT /Users/{id}Replace the whole resource
DELETE /Users/{id}Delete
GET /ServiceProviderConfig, /Schemas, /ResourceTypesDiscover what the server supports

Requests and responses use application/scim+json. Each resource has a server-assigned id; the client may also send an externalId with its own identifier. Errors return a SCIM error body with an HTTP status and optional scimType (for example uniqueness on HTTP 409).

PATCH /scim/v2/Users/2819c223
Content-Type: application/scim+json

{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
 "Operations":[{"op":"replace","path":"active","value":false}]}

How an IdP provisions (Microsoft Entra as example)

1. Initial cycle — read all users and groups in scope, match each against the target by the matching attribute (for example userPrincipalName → userName), then create or update, and store a watermark.

2. Incremental cycles — only objects changed since the watermark. A user who is unassigned or goes out of scope, or is disabled in the source, is updated to disabled; a hard-deleted source user is deleted in the target.

3. Scope — usually Sync only assigned users and groups; nested groups are not expanded. Attribute-based scoping filters are the alternative.

4. Quarantine — if most calls fail (for example expired admin credentials), the job slows to one cycle per day and is disabled after four weeks.

Changing attribute mappings or scoping filters starts a new initial cycle. Restart provisioning clears the watermark and re-evaluates everything without breaking existing links.

Design points

  • Choose an immutable matching attribute that exists in both systems; changing UPNs later can break matching.
  • Decide whether leavers are disabled (active: false) or deleted, and how long the app keeps data.
  • Groups pushed through SCIM can drive roles in the app — keep membership in the IdP, not edited by hand in the app.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
scimscim 2.0system for cross-domain identity managementuser provisioning apiautomatic user provisioning
Confirmation

Confirm action

Continue?