SCIM is the standard that lets an identity provider or IGA platform create, update and remove user accounts in other applications automatically. Without it, provisioning depends on manual tickets, CSV uploads or custom scripts, and deprovisioning is where it most often fails: leavers keep access to SaaS applications for weeks or never lose it. SCIM 2.0 is widely supported by SaaS vendors and identity platforms, but "supports SCIM" can mean very different things in practice. This guide explains how SCIM works, where integrations commonly fail, how to secure the SCIM connection itself, and what SCIM does not solve.
Key takeaways
- SCIM 2.0 defines a standard schema and REST API for users and groups (RFC 7643 and RFC 7644).
- The main value is reliable deprovisioning, not just faster onboarding.
- Check what a vendor's SCIM support actually does: deactivation vs deletion, group sync, custom attributes and error handling.
- The SCIM bearer token can create and modify accounts. Treat it as a privileged NHI credential.
- SCIM manages accounts and groups; it does not remove tokens, API keys and sessions a user created. Plan for those separately.
How SCIM works
- The SCIM client (usually the identity provider or IGA platform) calls the SCIM service provider (the application) over HTTPS.
- Resources such as
/Usersand/Groupsare created with POST, updated with PUT or PATCH, read with GET and removed with DELETE. - The core schema covers common attributes such as userName, name, emails, active and group membership, and enterprise extensions add attributes such as employee number, department and manager.
- Setting
activeto false deactivates an account without deleting it, which many organisations prefer so audit history survives. - Applications publish what they support through discovery endpoints (
/ServiceProviderConfig,/Schemas,/ResourceTypes).
SCIM operations and responses in detail
Most provisioning problems trace back to how a client and a service provider interpret the protocol. The points below come from RFC 7644 and are the ones that most often matter when testing an integration.
- Create and conflicts: a successful POST returns 201. If the new user clashes with an existing one, such as a duplicate userName, the server must return 409 with a scimType of uniqueness. Clients should handle this by looking the user up and linking the existing account, not by retrying the create.
- PUT and PATCH: PUT replaces attributes and must not create resources. PATCH is optional and based on add, remove and replace operations. Operations are applied in order and the request is atomic, so one failed operation restores the original resource. Check whether the application supports PATCH at all, because some clients fall back to PUT and overwrite attributes they do not manage.
- DELETE: a successful DELETE returns 204. The server may keep the record internally but must return 404 for later requests and omit it from queries. A new user with the same userName should not fail with a conflict.
- Filtering and paging: clients find existing users with filters such as userName eq "...". Paging uses a one-based startIndex and a count, and because paging is not stateful, clients must be prepared for inconsistent results. Reconciliation jobs should tolerate this.
- Versioning: servers may support ETags, and a client using If-Match on PUT or PATCH applies a change only if the resource has not changed since it was read. This protects against two systems overwriting each other.
- Bulk: bulk operations are an optional server feature with a declared maximum number of operations and payload size, and exceeding either returns 413. Do not assume bulk is available for large onboarding waves.
Transport and token rules sit in the same RFC. Clients and providers must require transport-layer security, and providers must support TLS 1.2. Bearer tokens need enough entropy to resist guessing and a limited lifetime. The RFC also advises that sensitive filters be sent by POST rather than in a URL, since URLs are often logged.
Deactivate or delete
| Approach | Advantage | Risk | Use when |
|---|---|---|---|
| Deactivate (active false) | Keeps ownership of content and audit history, allows reactivation | Account, sessions and tokens may stay valid if the application does not act on the flag | Immediately at leaving, for most business applications |
| Delete after a retention period | Removes personal data and licence cost | Loss of records or orphaned content if done too early | After the retention period agreed with legal and records management |
| Delete immediately | Fastest removal of data | Cannot be reversed, breaks audit trails | Rare: test accounts, or data protection requests |
Where SCIM integrations fail
| Failure | Effect | What to check |
|---|---|---|
| Only create is implemented | Accounts appear but are never removed | Test deactivation and deletion explicitly |
| Deactivation leaves sessions and tokens alive | Leaver keeps working until sessions expire | Whether the app revokes sessions and API tokens on deactivation |
| Groups not synchronised | Access in the app drifts from policy | Group push and membership updates |
| Local accounts outside SCIM | Admins or break-glass accounts never deprovisioned | Whether local sign-in can be disabled; report accounts not managed by SCIM |
| Silent errors | Failed updates go unnoticed | Error logging, retries and alerting in the IdP or IGA |
| Attribute mapping mistakes | Wrong roles or departments assigned | Mapping reviews and test users |
| SCIM behind a premium licence tier | Teams fall back to manual provisioning | Licensing during procurement |
A worked example: testing a leaver in a SaaS application
Imagine a team about to roll out SCIM for a collaboration tool. Before go-live they run the same test on a dedicated test user, and record the result for each step.
- Create: add the test user to the source group. Confirm the account appears with the expected attributes, group membership and role, and that no welcome email goes to a real mailbox unintentionally.
- Use: sign in through SSO, create a personal access token and authorise an OAuth integration under that user, as a real employee would.
- Move: change the department in the source system. Confirm that group membership and role change within the expected time and that old access is removed rather than added to.
- Leave: disable the user in the source system. Record how long until the application shows the account as inactive, then try the existing session, the personal token and the OAuth integration.
- Verify: if the token or session still works, the SCIM integration has not solved the leaver problem. Raise it with the vendor, and add a manual or scripted revocation step to the offboarding process until it is fixed.
- Restore and delete: reactivate the user to confirm that content returns, then delete and confirm the licence is released.
The same test works as an acceptance test at renewal and when the vendor releases a major update.
Evaluating a vendor's SCIM support
| Question | Strong answer | Weak answer |
|---|---|---|
| Which operations are supported? | Create, read, update, deactivate and delete for users and groups, with documented PATCH behaviour | "We support provisioning" |
| What happens on deactivation? | Sessions and tokens are revoked, with documented timing | The account is marked inactive but sessions continue |
| How are custom attributes and roles mapped? | Roles and entitlements can be assigned through the schema or group mapping | Roles are set manually after creation |
| How is the connection authenticated? | OAuth, or a scoped token with rotation and IP restriction | A single long-lived admin token |
| Which tier includes SCIM? | Stated in the contract, for the tier you are buying | Available only on a higher tier or at extra cost |
| Can local accounts be disabled? | Yes, with an enforced SSO-only setting | Local passwords remain for all users |
Securing SCIM
- Protect the SCIM token: it can create privileged accounts. Store it in a vault, scope it to provisioning only, rotate it and restrict source IP addresses where the application allows. See the API Key Management Guide.
- Prefer OAuth-based authentication for SCIM connections where both sides support it, over a static bearer token.
- Limit who can change SCIM configuration in the identity provider; a changed mapping or endpoint is a quiet way to grant access. See the Identity Provider and SSO Security Guide.
- Monitor for accounts created in applications outside SCIM, and for SCIM calls from unexpected sources.
- Be careful with inbound SCIM (an application or partner pushing identities into your IdP), which can create identities in your core directory.
What SCIM does not solve
- Personal access tokens, API keys and OAuth grants that a user created in the application. Revoke them separately at offboarding. See the Joiner-Mover-Leaver Guide.
- Non-human identities such as service accounts and integrations, which SCIM does not usually manage. See the NHI Lifecycle Management Guide.
- Fine-grained entitlements inside applications that SCIM groups do not express. IGA connectors or application APIs may be needed. See the IGA Buyer's Guide.
- Applications without SCIM: use IGA connectors, application APIs or, as a last resort, managed tickets with evidence of completion.
- Real-time events: SCIM is request-based; the Shared Signals Framework and emerging SCIM event work address notifying applications of changes such as account disablement.
Roles, ownership and operating model
SCIM connections often have no clear owner after the project that created them ends. Name an owner for each connection and for the identity platform as a whole.
| Role | Responsibility |
|---|---|
| Identity platform team | Provisioning engine, mappings, error alerting, token vaulting and rotation |
| Application owner | Role definitions, which groups grant which access, local account policy |
| HR or source system owner | Accuracy and timeliness of joiner, mover and leaver data |
| Security operations | Monitoring for unmanaged accounts and unusual SCIM activity |
| Procurement | Contract terms for SCIM availability, tier and support |
Metrics
- Share of business applications with working SCIM deprovisioning, as tested rather than claimed.
- Time from the leaver event in the source system to account deactivation, by application.
- Number of accounts in connected applications that the identity provider does not know about.
- Provisioning failures open for more than a set number of days.
- Age of each SCIM token, and the number held outside the vault.
- Share of leavers with tokens, keys or OAuth grants revoked at offboarding.
Migration considerations
- Moving to a new identity provider: plan how existing links between application accounts and directory users are preserved. Matching on email address alone creates duplicates when addresses change, so agree a stable identifier first.
- Enabling SCIM on an application with existing users: run in match-only or report mode first, resolve duplicates, and only then allow updates and deactivation.
- Changing mappings: test on a small group, because a wrong role mapping is applied to every user in scope at the next synchronisation.
- Contractors and partners: decide whether they come from your directory or the partner's, so that someone is responsible for removal.
Rolling out SCIM
- Rank applications by risk and number of users, and check SCIM support and licensing for each.
- Define the authoritative source and attribute mappings. See the Identity Data Quality Guide.
- Test the full lifecycle with test users: create, update, move, deactivate, reactivate and delete.
- Disable local account creation in the application where possible.
- Reconcile accounts in the application against the IdP after go-live, and remove strays.
- Monitor errors and alert on failed deprovisioning.
Mapping to control frameworks
Automated provisioning supports common account management and access review requirements, and evidence from SCIM logs can reduce manual audit work. Use these themes when mapping to your own framework.
| Control theme | How SCIM helps | Evidence to keep |
|---|---|---|
| Account creation and approval | Accounts are created only from an authoritative source and approved group membership | Provisioning logs linked to approvals |
| Timely removal of access | Deactivation follows the leaver event automatically | Time-to-deactivate report and tested examples |
| Periodic access review | Group membership in the application matches the identity provider | Reconciliation reports and review outcomes |
| Privileged and service credentials | The SCIM token is treated as privileged and rotated | Vault records and rotation history |
| Change control | Mapping and endpoint changes are restricted and logged | Configuration change records |
These themes appear in frameworks such as ISO/IEC 27001, SOC 2 and the NIST SP 800-53 account management family, though each framework words them differently. Confirm the exact control wording with your auditor.
Practitioner checklist
- Require working SCIM deprovisioning (not just provisioning) for new SaaS purchases.
- Test deactivation and confirm it revokes sessions and tokens in the application.
- Vault, scope and rotate SCIM tokens, or use OAuth where supported.
- Restrict and monitor changes to SCIM configuration in the IdP.
- Reconcile application accounts against the IdP and remove unmanaged accounts.
- Handle tokens, API keys and NHIs outside SCIM in offboarding.
- Alert on provisioning errors.
Standards and references
- RFC 7643: SCIM Core Schema
- RFC 7644: SCIM Protocol
- RFC 7642: SCIM Definitions, Overview, Concepts and Requirements
- OpenID Shared Signals Working Group
Related NHI Mgmt Group resources: Joiner-Mover-Leaver Guide · IAM and IGA Basics · IGA Buyer's Guide · Identity Data Quality and Identity Fabric Guide