SCIM, the System for Cross-domain Identity Management, is an open standard that defines a REST API and a JSON schema for creating, reading, updating and deleting user accounts and groups across different systems. In identity & access management, it is the protocol that keeps application accounts automatically synchronized with an authoritative directory or identity provider.
SCIM version 2.0 is specified by the IETF in RFC 7643 (core schema) and RFC 7644 (protocol), with use cases described in RFC 7642. It complements single sign-on: SAML or OpenID Connect decide how a user signs in, while SCIM decides whether the account exists and what attributes and group memberships it has.
How SCIM provisioning works
SCIM follows a client-server model. The identity provider, often called the SCIM client, pushes changes to the application, which exposes a SCIM service provider endpoint. When a new employee is added to the directory, the client sends an HTTP POST to the /Users endpoint with a JSON body describing the person.
Subsequent changes use PATCH for partial updates or PUT for full replacement, and offboarding uses either DELETE or, more commonly, a PATCH that sets the active attribute to false. Requests are authenticated with an OAuth 2.0 bearer token or, in older integrations, a long-lived static token configured in the identity provider.
The table below lists the core endpoints defined by the protocol and their purpose.
| Endpoint | Typical methods | Purpose |
|---|---|---|
/Users | GET, POST, PUT, PATCH, DELETE | Manage individual user resources |
/Groups | GET, POST, PUT, PATCH, DELETE | Manage groups and their members |
/Bulk | POST | Send many operations in one request |
/ServiceProviderConfig | GET | Advertise supported features |
/Schemas | GET | Describe available attributes |
/ResourceTypes | GET | List resource types and extensions |
Clients look up existing records with filter expressions such as userName eq "jdoe", which lets the identity provider match directory entries to accounts that already exist before it decides to create or update them.
The SCIM schema and its attributes
The SCIM core schema defines a common vocabulary for identity data, so every compliant application understands the same attribute names. Each resource carries a unique id assigned by the service provider and an optional externalId that stores the identifier used by the client.
| Attribute | Schema | Meaning |
|---|---|---|
userName | Core user | Unique sign-in identifier |
name and displayName | Core user | Structured and display names |
emails | Core user | Multi-valued email addresses |
active | Core user | Whether the account may sign in |
members | Core group | Users and groups in a group |
employeeNumber, department, manager | Enterprise user extension | Organizational data |
Vendors add their own attributes through schema extensions identified by a URN. Extensions provide flexibility but also cause the most interoperability problems, because each pairing of identity provider and application must map custom attributes explicitly.
SCIM compared with related identity protocols
SCIM solves account lifecycle synchronization, a different problem from authentication or authorization. The comparison below clarifies how it fits beside its neighbors in the identity stack.
| Standard | Main question answered | Timing |
|---|---|---|
| SCIM | Does the account exist, with which attributes | Before and after sign-in |
| SAML | Who is this user, asserted by the identity provider | At sign-in |
| OpenID Connect | Who is this user, via OAuth-based tokens | At sign-in |
| OAuth 2.0 | What may this client access | At each API call |
| LDAP | Query and update a directory | Continuous, usually internal |
Many applications support just-in-time provisioning through SAML or OpenID Connect, creating an account at the first sign-in. That approach is simpler, but it cannot deprovision anyone, because a departed user never signs in again, which is precisely the gap SCIM closes.
Deploying SCIM in practice
A typical SCIM deployment starts in the identity provider, where an administrator enables provisioning for an application, enters the tenant URL and secret token, and defines attribute mappings and scoping rules that determine which users and groups are synchronized.
- Scope by group so that only employees who need the application receive an account.
- Map a stable identifier such as an immutable directory ID to
externalId, not an email address that may change. - Prefer deactivation over deletion so audit history and owned data survive offboarding.
- Test with a pilot group before enabling provisioning for the whole organization.
- Monitor provisioning logs for rejected requests, which often reveal mapping or rate limit errors.
Synchronization is usually incremental. Major identity providers run provisioning cycles every few minutes up to about 40 minutes, depending on the product and tenant size, so a change does not take effect instantly. Urgent offboarding should therefore also revoke sessions and tokens directly.
Limitations and common implementation pitfalls
SCIM is a standard, yet real implementations vary considerably. Service providers support different subsets of filtering, PATCH syntax and bulk operations, and some vendors offer SCIM only on premium license tiers, which can make automated deprovisioning expensive for smaller organizations.
| Symptom | Likely cause | Fix |
|---|---|---|
| Duplicate accounts created | Matching on a changed email address | Match on an immutable identifier |
| Group changes ignored | Unsupported PATCH path syntax | Adjust mapping or vendor settings |
| Departed user still active | User removed from scope, not disabled | Configure deactivation on unassignment |
| Requests rejected with 429 | Service provider rate limits | Throttle or schedule large imports |
| Provisioning silently stopped | Expired or rotated bearer token | Rotate credentials and alert on failures |
Security deserves equal attention. A SCIM token can create privileged accounts in the target application, so it must be stored as a secret, rotated regularly and restricted to the provisioning endpoint. Treating the SCIM integration as part of privileged access management is a sound practice.
Explained without jargon
Imagine a company that uses fifty online tools. Every time someone joins, changes team or leaves, an administrator would have to open each tool and update the account by hand. Mistakes happen, and former staff sometimes keep access for months.
SCIM is a shared language for passing these changes along automatically. The central company directory announces that a person joined, moved or left, and every connected tool updates its own account list. The biggest benefit is reliable removal of access when someone leaves.
A typical use case
A software company with 1,200 employees connects its identity provider to its chat platform, code hosting service and customer support tool through SCIM. Access to each tool is granted by membership in directory groups, for example an engineering group for code hosting and a support group for the help desk.
When the HR system marks a new support agent as hired, the directory creates the user and adds the agent to the support group. Within the next provisioning cycle, the help desk tool receives a SCIM request and the account is ready before the first day, with the correct name, email and department.
Months later, the agent leaves. HR disables the directory account, and SCIM sets active to false in every connected tool. An internal audit afterward found that the average time to remove access fell from several days to under one hour, and no orphaned accounts remained in the three integrated applications.