Skip to content

Product · Connect your customers

SCIM 2.0 Directory Sync

Users and groups from your customer’s directory

Live now · API and Admin Portal

RealmSSO offers SCIM 2.0 Users and Groups endpoints. Your customer’s IdP pushes users into the customer’s realm. Group sync is off by default.

  1. Customer’s IdPpushes users and groups
  2. SCIM 2.0
  3. SCIM 2.0 API/api/scim/v2token kept as a hash
  4. auto-provision on
  5. Customer’s realmusers created, no passwordgroup sync: off by defaultdelete deprovision: off by default
Your customer’s identity provider pushes users through RealmSSO’s SCIM API, which stores only a SHA-256 hash of the SCIM token. Group sync and delete-time deprovisioning are off by default.
Live now

The endpoints

The SCIM base path is /api/scim/v2 on the API host.

Users and Groups

The endpoints serve Users and Groups, with list, get, create, replace, patch and delete. They also serve /ServiceProviderConfig and /Schemas.

Two filters

GET /Users accepts two filters: userName eq and email eq. It ignores any other filter. GET /Groups ignores filters. A page returns at most 200 results.

Patch requests

RealmSSO accepts the operation name in any letter case, such as Replace. An operation without a path applies its value: a replace whose value sets active to false deactivates the user. To remove a group member, send the path members and name the member in the value, or name the member in a filtered path.

Token

Your customer chooses the SCIM token. It needs at least 32 characters. RealmSSO stores only its SHA-256 hash. An account has one token, and a new token replaces the old one at once. The IT admin sets it in the Admin Portal.

Events

Each SCIM write that RealmSSO processes records an event, whether it succeeds or fails. A request refused before processing, for example for a bad token or an invalid body, records nothing. A read records nothing.

Live now

What changes in the realm

RealmSSO keeps a directory record of each SCIM user and group. The account’s SCIM settings decide what also changes in the realm. With the defaults, user creates, updates and deactivations reach the realm. Deletes and groups do not.

Create a user

A SCIM create writes a directory record. With auto-provision on, which is the default, it also creates or updates the user in the customer’s realm. A realm is the separate sign-in space RealmSSO makes for each account. The user has no password. RealmSSO can refuse a create: see “SCIM and SSO together”.

Rename a user

A SCIM patch or replace that changes the userName renames the user in the realm. This needs auto-provision on, which is the default. The user keeps the same user id, and the sub claim of its tokens stays the same. RealmSSO answers 409 for a new userName that another user has, and 400 for one that the realm refuses. With auto-provision off, a rename changes the directory record only.

Username and email

RealmSSO locks every user’s username and email in a realm, when it creates the realm and when the server starts. With the lock on, a user cannot change either one, on the account page of the realm or at sign-in. A user can still change their own first and last name, but a later SCIM push can replace them. A SCIM push can change the username and the email, with auto-provision on. No dashboard or Admin Portal screen, and no other API route, changes them.

SCIM and SSO together

Only a first sign-in through the connection that SCIM is paired with links a person to the user SCIM created. A person whose email and userName match no user gets a user of their own, which SCIM does not manage. With auto-provision on, a push that matches a person who signed in through SSO first is refused with 409. SCIM takes that user over only when it is paired with the connection that person signed in through. People that SCIM already manages keep syncing.

Pairing SCIM with a connection

Only a save of the SCIM settings pairs SCIM with a connection. If SCIM was never paired and the account has one provisioned connection, the Admin Portal save pairs it. A provisioned connection has an identity provider in the sign-in service.

SCIM with several connections

With two or more provisioned connections, and SCIM never paired, RealmSSO refuses a portal save that leaves SCIM on. Pair SCIM with one connection by sending pairedConnectionId through the Admin Portal API. If the paired connection is deleted, pair SCIM again the same way.

Deactivate a user

Setting active to false disables the user in the realm and ends their sessions. This happens when auto-provision is on, which is the default. It does not need auto-deprovision.

Delete a user

A SCIM delete removes the directory record. It disables the user in the realm only when auto-deprovision is on. Auto-deprovision is off by default.

Groups

Group sync is off by default. When it is on, RealmSSO creates, renames and deletes realm groups and syncs their members. A directory record is written either way.

Who sets the switches

Auto-deprovision, group sync and attribute mapping are set through the Admin Portal API. The Admin Portal screen turns SCIM on and sets its token. Its save can also pair SCIM with a connection.

Talk to the people who build it.

We run RealmSSO for you. Tell us which identity providers your customers use and how many customers you have, and we will tell you what fits today.