Provision People With SCIM
SCIM is the standard way an identity provider tells an application who works at your organization. With it on, Microsoft Entra ID, Okta or another provider that speaks SCIM 2.0 adds your people here before they ever sign in, keeps their names and addresses as your directory has them, puts them in groups that give roles, and deactivates someone the moment they leave. Nobody it adds gets an invitation: they sign in through your single sign-on.
You set it up once, with an address and a token. Administrators do this on the People page, under Provisioning by SCIM.
Before You Start
Section titled “Before You Start”- Your organization signs in through your own identity provider, with single sign-on by OpenID Connect or SAML.
- Your e-mail domains are verified. A person’s userName must be an address of one of them: an address of any other domain is refused.
- You have an authenticator app or a passkey. Making or revoking a token asks you to confirm it is you.
Make a Token
Section titled “Make a Token”- On the People page, under Provisioning by SCIM, copy the SCIM Address. It is your instance’s address followed by
/scim/v2. - Choose Make a Token. Give it a name, such as Microsoft Entra ID, and how many days it lasts: 366 at most, which is what it gets unless you choose fewer. A token always has an end.
- Choose Make the Token, and confirm it is you.
- Copy The Token now. This is the only time it is shown: it is kept only as a keyed hash, so nobody can read it back. If it is lost, make a new one and revoke the old one.
An organization has at most three live tokens: one in use, its replacement, and one to spare. To replace a token before it ends, make the new one, give it to your provider, then Revoke the old one. Revoking is at once and for good. Each token shows when and from which address it was last used.
Making and revoking a token are in the activity log as Scim token created and Scim token revoked, with its name and last four characters. A support session cannot make or revoke one.
Set It Up in Microsoft Entra ID
Section titled “Set It Up in Microsoft Entra ID”These steps follow Microsoft’s guide to SCIM provisioning for an application outside its gallery.
- Sign in to the Microsoft Entra admin center as at least an Application Administrator.
- Open Entra ID, Enterprise apps. Use the enterprise application your single sign-on already uses, or choose New application, Create your own application, give it a name, choose Integrate any other application you don’t find in the gallery, and choose Add.
- In the application, open Provisioning and start a new configuration.
- In Tenant URL, paste the SCIM Address. In Secret Token, paste the token.
- Choose Test Connection. Entra ID looks for a person who does not exist, and the test passes when the answer is an empty list.
- Create the configuration.
- Under Users and groups, assign the people and the groups to provision. With the scope Sync only assigned users and groups, nobody else is sent.
- Under Attribute mapping, look at the mappings for users. Map userName to the attribute that holds each person’s address of your verified domain, often userPrincipalName or mail. The application keeps userName, active, displayName, name.givenName, name.familyName, the work address in emails[type eq “work”].value, and externalId; it passes over the rest, so you may delete their mappings. For groups it keeps displayName, externalId and members.
- To try one person first, use Provision on demand.
- Choose Start provisioning. The first cycle takes longest; after it, Entra ID sends changes about every 40 minutes.
Entra ID writes its changes in two ways, depending on how the application was set up there: with Replace in capital letters and "False" as a string, or in SCIM’s own form. Both are understood, so the Tenant URL needs nothing added to it.
Set It Up in Okta
Section titled “Set It Up in Okta”These steps follow Okta’s guide to adding SCIM provisioning to an application integration.
- In the Okta Admin Console, open the application integration your single sign-on uses. Okta adds SCIM to SAML and SWA integrations, and to OpenID Connect integrations made in its integration wizard.
- On the General tab, under App Settings, choose Edit, set Provisioning to SCIM, and choose Save.
- On the Provisioning tab, under Settings, Integration, choose Edit.
- In SCIM connector base URL, paste the SCIM Address. In Unique identifier field for users, type
userName. - Under Supported provisioning actions, choose Push New Users, Push Profile Updates and Push Groups. Import New Users and Profile Updates also works: Okta reads your people from here.
- In Authentication Mode, choose HTTP Header, and paste the token in Authorization.
- Save. Then, under Settings, To App, turn on what the application should receive: new users, changes to their attributes, and deactivations.
- Assign the people and groups to the application, and push the groups that should give roles under Push Groups.
Okta sends a person’s whole profile each time it changes, with a password and a list of groups beside it: the password is passed over, and groups are set through the groups themselves.
Roles From Groups
Section titled “Roles From Groups”A group your provider sends gives its members a role through the same mapping single sign-on reads at each sign-in, under Roles From Groups on the Single Sign-On page. A group is matched by its display name or by its externalId, as you typed the group’s value there: for Microsoft Entra ID, the attribute mapping shows what it sends as externalId, often the group’s object ID, which is also the value its sign-in sends.
- When someone joins or leaves a group, their author, assessor and auditor roles are set again from all of their groups at once. A role taken away ends their sessions at once, as on the People page.
- A person in no mapped group keeps any administrator or central team role, and otherwise gets the role in They Start As of your single sign-on.
- A group no mapping names is kept, and gives no role.
- At a sign-in, the groups your provider’s token carries and the groups SCIM keeps for the person are read together, so a person’s roles are the same whichever way their groups arrive. When the token carries too many groups to read, the ones SCIM keeps still count.
Each change to a group is in the activity log as Scim group changed, and each change of a person’s roles as User roles from groups.
What a Deactivation Does
Section titled “What a Deactivation Does”When your provider sets a person’s active to false, or deletes them:
- Their sessions end at once, and every way of signing in refuses them, as when an administrator deactivates them. See Deactivate someone who has left.
- Their models, comments and name in the activity log stay. Nobody’s work is deleted.
- Their seat is free.
When the provider sets active to true again, the person is let back in, if a seat is free. A person an administrator deactivated on the People page stays deactivated until an administrator reactivates them, whatever the provider sends. A person the provider deleted no longer appears to it; if it adds the same address again, it is the same person, back with their history.
The People page marks everyone your provider provisions with SCIM. Each change is in the activity log as Scim user created, Scim user updated, Scim user deactivated or Scim user reactivated, naming the token it came with.
What SCIM Never Does
Section titled “What SCIM Never Does”- It never makes anyone an administrator or a member of the central team. A group gives author, assessor or auditor only, and a roles attribute sent with a person is passed over. An identity provider that was broken into would otherwise own your organization. Administrators and the central team are chosen on the People page, as always.
- It never deactivates your organization’s only active administrator.
- It never changes the address of an administrator, or of someone who signs in with a password: a new address there is for the person to make.
- It never reaches service accounts, the platform’s operators, support access, or another organization: a token reaches its own organization’s people and groups, and nothing else.
- It sends no invitation and no message.
- The public demo is never provisioned by SCIM.
For Your Identity Team
Section titled “For Your Identity Team”| Base address | Your instance’s address, then /scim/v2 |
| Authentication | Authorization: Bearer nbs_…, the organization’s SCIM token |
| Resources | /Users, /Groups, /ServiceProviderConfig, /ResourceTypes, /Schemas |
| Filters | eq, ne, co, sw, ew, pr, gt, ge, lt, le, with and, or, not; such as userName eq "…", externalId eq "…", emails[type eq "work"].value eq "…", displayName eq "…" |
| Paging | startIndex from 1, count up to 200 (100 when left out) |
| PATCH | add, replace and remove, in any case, with a path or with a value object |
| Versions | ETags; a stale If-Match answers 412 |
| Media type | application/scim+json, or application/json |
| Errors | SCIM’s error document, with status, scimType and detail; 409 uniqueness for an address or a group’s name already there |
| Limit | 1,200 calls a minute for one token unless your instance’s operators set otherwise; then 429 with Retry-After |
Deleting a user deactivates the person, as above. Bulk requests, sorting and password changes are not part of the service, and /ServiceProviderConfig says so.