Blog · Guides

What is SCIM, and how does user provisioning work?

SCIM 2.0 explained: the standard API for creating, updating and removing users and groups across apps, how it works with SSO, example requests, and how to add SCIM provisioning to your app.

Casdoor Team · November 22, 2026 · 5 min read

This guide is written by the team that builds Casdoor and describes the standards as published (listed under Sources), with notes on how Casdoor implements them as of November 22, 2026. Spotted a mistake? Tell us.

SCIM (System for Cross-domain Identity Management) is a standard REST API for keeping user accounts in sync between systems. When someone joins a company, changes teams or leaves, the identity provider uses SCIM to create, update or deactivate their account in every connected app, without anyone doing it by hand.

SCIM 2.0 is defined by two IETF standards from 2015: RFC 7643 (the schema for users and groups) and RFC 7644 (the protocol).

SCIM and SSO: two halves of the job

  • SSO (SAML or OpenID Connect) answers "who is signing in right now?" It happens at sign-in time.
  • SCIM answers "which accounts should exist, with what attributes and groups?" It happens whenever the directory changes.

With SSO alone, an app usually creates the account the first time someone signs in (just-in-time provisioning), and it never learns when that person leaves. With SCIM, the account exists before the first sign-in, group memberships stay current, and offboarding takes effect immediately.

How SCIM works

The app that holds accounts is the SCIM service provider; the identity provider or directory that pushes changes is the SCIM client. The service provider exposes standard endpoints:

Endpoint What it's for
/Users, /Users/{id} Create, read, replace, update and delete users
/Groups, /Groups/{id} The same for groups and their members
/ServiceProviderConfig, /Schemas, /ResourceTypes What this server supports

A new hire is a POST:

POST /scim/Users
Content-Type: application/scim+json
Authorization: Bearer <token>

{
  "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
  "userName": "alice",
  "name": {"givenName": "Alice", "familyName": "Smith"},
  "emails": [{"value": "alice@example.com", "primary": true}],
  "active": true
}

A change is a PATCH with operations such as replace, add or remove, and someone leaving is usually a PATCH that sets active to false, or a DELETE. Clients can also list users with startIndex and count to reconcile.

SCIM vs LDAP

SCIM and LDAP both deal with users and groups, so they get compared, but they do different jobs. SCIM is an HTTP and JSON standard for provisioning: a source pushes create, update, deactivate and delete operations into an application. LDAP is a directory protocol (RFC 4510 and RFC 4511) for authentication and lookup: an application binds to the directory as a user, with a distinguished name (DN) and password, and searches for users, groups and attributes. SCIM pushes changes to apps; LDAP lets apps query a directory.

SCIM LDAP
Purpose Provisioning and lifecycle Directory access and bind authentication
Transport HTTPS with JSON LDAP over TCP, usually TLS
Direction The source pushes changes to the app The app queries the directory
Authenticates end users No Yes, through bind
Typical client Identity provider, HR system Application, VPN, network device
Typical failure Wrong attribute mapping or missing deprovisioning Bind failure, DN mistake, TLS or filter error

Most organizations run both, with the identity provider in the middle:

  1. The HR system is the source of truth for joiners, movers and leavers.
  2. The identity provider imports from HR, authenticates users, and holds groups and roles.
  3. SCIM pushes those users and groups into SaaS applications such as Slack, Zoom, Atlassian or GitHub.
  4. LDAP serves what cannot speak SCIM: VPN concentrators, Wi-Fi controllers, printers, NAS devices and legacy Java applications.
  5. SAML or OIDC handles the interactive login for applications that support browser SSO.

Neither replaces the other. Most network devices and legacy applications do not speak SCIM, and LDAP has no standard lifecycle API for SaaS provisioning; exposing a directory to the internet for every SaaS vendor is worse than giving each vendor a scoped SCIM token. Treat both as credentials: scope, rotate and log SCIM tokens, run LDAP only over LDAPS or StartTLS and never expose it directly to the internet, and give applications that only search a read-only service account. Then test deprovisioning: disable a test user in the source and confirm that SCIM and LDAP access both stop.

Why B2B apps need SCIM

Enterprise customers who buy your app expect it to fit into their identity lifecycle: "Do you support SSO?" is usually followed by "Do you support SCIM?". Without it, their IT team has to remember to remove leavers from your app by hand, which security reviews flag. Supporting SCIM is often a requirement for larger deals, and many vendors charge per SCIM connection for it.

SCIM with Casdoor

Casdoor works on both sides of SCIM:

  • As a SCIM 2.0 service provider, it exposes /scim/Users and /scim/Groups with GET, POST, PUT, PATCH and DELETE, plus the discovery endpoints, so a directory can provision users into Casdoor. The organization of a user is passed in the enterprise user extension.
  • As a SCIM client, its SCIM syncer pulls users from any SCIM 2.0 directory, alongside syncers for Active Directory, LDAP, Entra ID, Google Workspace, Okta, Keycloak and databases.
  • As an LDAP server, it serves a directory to the applications and devices that need one, so one identity provider covers SCIM provisioning, LDAP lookups and SAML or OIDC sign-in.

Because the users then sign in to your apps through Casdoor over OIDC or SAML, your apps get SSO and up-to-date accounts without implementing SCIM themselves. SCIM is included in every plan, with no per-connection fee. Self-host Casdoor for free, or run it on Casdoor Cloud from $6.67/month billed yearly. See also What is SSO, SCIM vs SAML, SCIM vs JIT provisioning and LDAP vs Active Directory.

FAQ

What does SCIM provisioning mean? SCIM provisioning is the automatic push of user and group changes from an identity provider or directory to an application over the SCIM 2.0 API, instead of creating and removing accounts by hand.

What is SCIM vs LDAP? SCIM is a REST and JSON standard for provisioning accounts and groups into applications: create, update, deactivate and delete. LDAP is a directory protocol for authentication and lookup: an application binds as a user and searches the directory. SCIM pushes changes to apps; LDAP lets apps query a directory.

Do you need both SCIM and LDAP? Often, yes. SCIM provisions modern SaaS apps, while VPNs, Wi-Fi controllers, printers and legacy apps still only speak LDAP. One identity provider can serve both from a single user and group model.

What's the difference between SCIM and just-in-time provisioning? Just-in-time provisioning creates an account at first sign-in from the SSO assertion. It can't remove accounts or update people who don't sign in; SCIM can.

Is SCIM 1.1 still used? Rarely. New integrations use SCIM 2.0.

How is a SCIM endpoint secured? Usually with a bearer token or OAuth 2.0 credentials that the identity provider is configured with, over HTTPS.