# SCIM explained: how user accounts get created and removed by themselves

> SCIM is the protocol that creates, changes and removes user accounts in apps, so a leaver’s account is closed in each app. How it works, with one example.

- URL: https://iamops.dev/scim-explained-user-accounts-automatic/
- Language: en
- Author: Argo
- Published: 2026-11-29
- Category: Knowledge
- Depth: Explainer
- Audience: Security leaders and architects
- Time: 5 min
- Topics: SCIM, Provisioning, Identity basics

## TL;DR

- The System for Cross-domain Identity Management standard lets an [identity provider create, change and remove](https://iamops.dev/scim-explained-user-accounts-automatic/#what-scim-is) user accounts inside each app.
- Every change is a plain web call with the user's details, and the app answers with its own identifier (ID) for that user, as in [this example](https://iamops.dev/scim-explained-user-accounts-automatic/#one-example-a-new-hire-on-day-one).
- A failed call, such as an expired token, can [leave a leaver's account open](https://iamops.dev/scim-explained-user-accounts-automatic/#when-the-sync-breaks) while the identity side already shows them as gone.
- Check token expiry, deactivation tests and failed-call alerts before you trust [the sync](https://iamops.dev/scim-explained-user-accounts-automatic/#what-to-check).

**Audience: Beginners.** You know that people join and leave companies, and you want to know how their app accounts follow them.

When someone joins a company, four or five apps need an account for them. When they leave, each account has to go, and somebody has to remember all of them. System for Cross-domain Identity Management, or <abbr title="System for Cross-domain Identity Management">SCIM</abbr>, is the standard that does this work. The identity provider keeps the list of people and groups, and it talks to each app over a web interface to create, change and remove accounts.

Before you start: the [OpenID Connect explainer](https://iamops.dev/openid-connect-explained/) covers sign-in. SCIM does not sign anyone in. It only keeps the accounts in place.

## What SCIM is

SCIM is a set of rules for user and group records. <abbr title="Request for Comments">RFC</abbr> 7643 defines the shape of a user, with fields such as a user name, a name, emails and an active flag. RFC 7644 defines the protocol: plain <abbr title="Hypertext Transfer Protocol">HTTP</abbr> calls with <abbr title="JavaScript Object Notation">JSON</abbr> bodies.

The identity provider is the client that sends the calls. The app that receives them is the service provider. The app publishes a set of endpoints, and the identity provider knows where to find them.

Think of a building's keycard desk. A manager sends a request with the new person's name and the floors they need. The desk prints a card. When the person leaves, the desk cancels the card. The desk does not decide who should be in the building. It only follows the list it is given.

## One example: a new hire on day one

Maria joins on Monday. The identity provider creates her in a support tool with a POST to the tool's user endpoint. The body carries her name, her work email and her group. The tool answers 201 Created and returns its own internal <abbr title="identifier">ID</abbr> for her. The identity provider stores that ID, because every later call must name it.

The example uses made-up names and addresses.

## The calls: create, read, change, remove

Creating a user is a POST. Reading one is a GET. Changing a field is a PATCH, for example setting the active flag to false. Deleting is also possible, but many teams deactivate instead, so the history and the audit trail stay in the app.

The flow below shows the create call, the deactivate call, and the failure that matters most.

![Four steps between an identity provider and a support app: a create call, a 201 reply with the app's ID, a deactivate call, and a 401 error that leaves the leaver's account open.](https://iamops.dev/img/scim-explained-user-accounts-automatic.svg)

*Create, deactivate, and the silent failure. The 401 at the end means the change never reached the app.*

## When the sync breaks

On Friday, Maria leaves. The identity provider sends a PATCH with the active flag set to false. The token it uses to call the tool has expired, so the tool answers 401 Unauthorized, and the change never lands. Maria's account stays active.

Nobody notices, because the identity provider shows her as gone. Many provisioning tools retry and send an alert. Someone still has to read the alert, and someone has to act on it.

A successful deactivation is not the whole job either. Tokens and sessions that were already issued can live on for a while, as [our Entra test of a revoked secret](https://iamops.dev/entra-revoked-secret-token-still-works/) showed for app tokens. Ask each app what happens to open sessions.

## What to check

- Who owns the token that the sync uses, and the date it expires. Put that date in a calendar.
- Whether leavers are deactivated, and whether you test that with a real test record.
- Whether group membership maps to app roles, so access follows the group.
- Whether failed calls reach a person, not only a log file.

The more apps a company uses, the more it needs one identity record that the apps follow.

## Where to go next

- [Access, refresh and ID tokens](https://iamops.dev/access-refresh-id-tokens-explained/): the token the sync job uses is one of these.
- [Secrets or federation: how a <abbr title="continuous integration">CI</abbr> job proves who it is](https://iamops.dev/secrets-vs-federated-credentials/): how a job proves its identity without a stored password.
- [OpenID Connect explained](https://iamops.dev/openid-connect-explained/): the sign-in part that SCIM leaves out.

## Sources

- [IETF, RFC 7643: System for Cross-domain Identity Management: Core Schema](https://datatracker.ietf.org/doc/html/rfc7643)
- [IETF, RFC 7644: System for Cross-domain Identity Management: Protocol](https://datatracker.ietf.org/doc/html/rfc7644)

Discuss: [X](https://x.com/iamopsdev) | [LinkedIn](https://www.linkedin.com/company/iamops-dev/)
