Provision people with SCIM
SCIM lets your identity provider manage who is in a Lainstack organization. When you assign someone to Lainstack in your provider, they appear in the organization. When you change their name or email address, Lainstack follows. When you unassign or disable them, they lose access.
Use it together with single sign-on: SCIM decides who is in the organization, and SSO is how those people sign in.
Before you start
Section titled “Before you start”- The organization must belong to a super organization with at least one verified email domain. See Verify your email domain.
- You need member management access in the organization.
- Your provider must support SCIM 2.0 with a bearer token, as Okta and Microsoft Entra ID do.
1. Create a token
Section titled “1. Create a token”- In Lainstack, open Settings, Organization, User provisioning.
- Click New token. Give it a name you will recognise later, such as the provider it is for, and choose when it expires: in 30, 90, 180 or 365 days.
- Click Create token. Lainstack shows the token once. Copy it, then confirm you have stored it.
The token belongs to the organization, not to you. It keeps working if you leave, until it expires or someone revokes it.
2. Set up your provider
Section titled “2. Set up your provider”In your provider’s provisioning settings for the Lainstack application:
- SCIM base URL (sometimes called the tenant URL or connector base URL): copy it from the User provisioning page. It ends in
/api/scim/v2. - Authentication: HTTP header, bearer token. Paste the token from step 1.
- Unique identifier for users:
userName, set to the person’s email address. - Actions: create users, update user attributes and deactivate users. Leave group push off; assign roles in Lainstack.
Then test the connection from your provider and assign people or groups to the application.
What Lainstack does with each request
Section titled “What Lainstack does with each request”SCIM only manages addresses in your super organization’s verified domains. The User provisioning page lists them.
| Your provider | What happens in Lainstack |
|---|---|
| Assigns a new person | They are added to the organization as a Member. Give them other roles in Lainstack. |
| Assigns someone who already has a Lainstack account but isn’t in the organization | Refused. Invite them to the organization instead; once they are a member, your provider finds and manages them. |
| Changes a name or email address | Lainstack updates it, as long as the new address is in a verified domain and nobody else has it. |
| Deactivates or deletes a person | Their Lainstack account is suspended everywhere, and they can no longer sign in. Reactivating them restores it. |
| Assigns or removes a person whose address is outside your domains | Lainstack doesn’t create them or change their account. Removing them only takes them out of this organization; their account stays theirs. |
Lainstack supports the requests that Okta and Microsoft Entra ID send: looking people up by userName, externalId or work email, full and partial updates (PUT and PATCH), and deactivation. It doesn’t support bulk requests, sorting or password changes.
Keep provisioning running
Section titled “Keep provisioning running”The User provisioning page lists every token with its fingerprint, who created it, when it expires and when it was last used.
- Before a token expires, create a new one and paste it into your provider. When a token expires, provisioning stops until you add a new one.
- To stop a token at once, open its menu and choose Revoke token. Your provider can no longer use it. This can’t be undone.
- If a domain stops passing its DNS checks, your provider can’t add or rename people in it until the record is back. See Verify your email domain.