SCIM

Also known as: System for Cross-domain Identity Management

On this page 7

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.

EndpointTypical methodsPurpose
/UsersGET, POST, PUT, PATCH, DELETEManage individual user resources
/GroupsGET, POST, PUT, PATCH, DELETEManage groups and their members
/BulkPOSTSend many operations in one request
/ServiceProviderConfigGETAdvertise supported features
/SchemasGETDescribe available attributes
/ResourceTypesGETList resource types and extensions
Core SCIM 2.0 endpoints

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.

AttributeSchemaMeaning
userNameCore userUnique sign-in identifier
name and displayNameCore userStructured and display names
emailsCore userMulti-valued email addresses
activeCore userWhether the account may sign in
membersCore groupUsers and groups in a group
employeeNumber, department, managerEnterprise user extensionOrganizational data
Frequently used SCIM attributes

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 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.

StandardMain question answeredTiming
SCIMDoes the account exist, with which attributesBefore and after sign-in
SAMLWho is this user, asserted by the identity providerAt sign-in
OpenID ConnectWho is this user, via OAuth-based tokensAt sign-in
OAuth 2.0What may this client accessAt each API call
LDAPQuery and update a directoryContinuous, usually internal
SCIM and neighboring identity standards

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.

SymptomLikely causeFix
Duplicate accounts createdMatching on a changed email addressMatch on an immutable identifier
Group changes ignoredUnsupported PATCH path syntaxAdjust mapping or vendor settings
Departed user still activeUser removed from scope, not disabledConfigure deactivation on unassignment
Requests rejected with 429Service provider rate limitsThrottle or schedule large imports
Provisioning silently stoppedExpired or rotated bearer tokenRotate credentials and alert on failures
Typical SCIM problems and fixes

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.