iamops.dev Search
Argo on X RSS feed
ENEnglish

Knowledge Explainer · 5 min Beginners

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

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.

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.
TL;DRThe System for Cross-domain Identity Management standard lets an…
  • The System for Cross-domain Identity Management standard lets an identity provider create, change and remove 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.
  • A failed call, such as an expired token, can leave a leaver's account open while the identity side already shows them as gone.
  • Check token expiry, deactivation tests and failed-call alerts before you trust the sync.

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 SCIM, 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 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. RFC 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 HTTP calls with JSON 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 ID 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.
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 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#

Sources#

Discuss this on X or LinkedIn

Follow on X

New posts by email

One email a week with new posts and labs. Unsubscribe anytime.

Your address is stored with Kit, which sends the emails. Details

Related research and labs

Type to search every page. Use the arrow keys to move through the results.

    Open the full search page