# Provisioning (SCIM) (https://www.dessn.com/docs/sso/scim)

Your identity provider adds people to your Dessn team, sets their role from their groups, and removes them when they leave, over SCIM 2.0.

With SCIM provisioning, your identity provider (IdP) keeps your Dessn team in step with it. Assigning someone the Dessn
app adds them to your team. Their IdP groups set their role. Deactivating or unassigning them removes them from your
team at once, and ends the Dessn sessions your IdP gave them. Dessn implements SCIM 2.0 ([RFC 7643](https://www.rfc-editor.org/rfc/rfc7643),
[RFC 7644](https://www.rfc-editor.org/rfc/rfc7644)), and works with Okta's and JumpCloud's SCIM clients.

SCIM works alongside [single sign-on](https://www.dessn.com/docs/sso): set up and verify your domain first. You need to be an owner of your
Dessn team.

## What your IdP's changes do in Dessn
| In your IdP | In Dessn |
| --- | --- |
| Assign someone the Dessn app (SCIM creates them) | Their Dessn account is created if they have none, or their existing account at that address is used. They join your team with the role their groups map to, else **New people join as**. Their address must be on a domain your team verified. |
| Change their name or username | Their SCIM record follows. Their Dessn account keeps the address it has, and a name they set themselves. |
| Add them to a group, or remove them from one | Their role follows your [group mapping](#roles-from-your-idps-groups). |
| Deactivate, suspend or unassign them | They're removed from your team at once, even in tabs they have open. **Every Dessn session they started through your IdP ends**: it can't be renewed, and they're signed out within an hour. Their Dessn account isn't deleted, because it may be on other teams. |
| Delete them | The same as deactivating them, and their SCIM record goes. |
| Reactivate or reassign them | They're back on your team, even if someone had removed them in Dessn. |

- **Your IdP decides who is on the team, for the people it provisions.** If someone is removed in Dessn while your IdP
  still assigns them, your IdP adds them back the next time it updates them. To remove someone for good, unassign them
  in your IdP.
- **Inactive stays off.** Someone your IdP marks inactive (created inactive, deactivated or deleted) is kept off your
  team: signing in through your IdP or your verified domain doesn't add them back. Your IdP reactivating them does, and
  so does an invitation from an owner or admin. If they're back on the team that way, your IdP's next deactivation or
  delete removes them again.
- **Only while single sign-on is on.** When an owner turns **Single sign-on** off, Dessn refuses your IdP's provisioning
  too (`401`) until it's on again. Your IdP keeps the changes and retries or lists them as errors. To remove someone
  meanwhile, remove them in Team settings › Members.
- **Owners are never removed or changed by your IdP.** They're your team's way back in if your IdP is down or
  misconfigured. A deactivated owner keeps their seat; the change is shown in your audit log.
- **Only your verified domains.** Your IdP can provision only addresses on a domain your team verified. Others are
  refused (`400`), and the refusal is in your audit log. Dessn staff addresses are never provisioned.
- **Seats.** On a paid plan, someone who joins as an Editor or Admin takes a free paid seat. If none is free, they join
  as a Viewer until one is. Provisioning never adds a charge.

## The values your IdP needs
| Field | Value |
| --- | --- |
| SCIM base URL (connector URL) | `https://create.dessn.ai/api/auth/sso/scim/v2/<connection-key>`: copy **SCIM base URL** from Team settings › Security › **Provisioning (SCIM)** |
| Authentication | HTTP header `Authorization: Bearer <token>`, with the token from **Generate token** |
| Unique identifier for users | `userName` |
| SCIM version | 2.0 |

### Make a token
Open [create.dessn.ai/w/settings/security](https://create.dessn.ai/w/settings/security). Under **Provisioning (SCIM)**,
press **Generate token**. Copy the token and paste it into your IdP straight away: Dessn shows it once and keeps only a
hash of it.

- **Generate a new token** replaces the old one at once. Paste the new one into your IdP, or provisioning pauses until
  you do.
- **Turn off SCIM** stops your IdP's provisioning at once. The people it added stay on your team as they are.
- Only your team's owners can make or revoke a token.

## Okta
These steps follow Okta's Admin Console as of December 2026; its labels can differ slightly between versions.

<Steps>
<Step>
### Turn on SCIM for the Dessn app
In the Okta Admin Console, open **Applications**, then your Dessn app integration. On its **General** tab, under **App
Settings**, press **Edit**. In **Provisioning**, choose **SCIM**, then press **Save**. A **Provisioning** tab appears.

Okta offers SCIM on SAML 2.0 app integrations. If your Dessn app is an OIDC app integration and Okta doesn't show the
**SCIM** option, turn SCIM on for a SAML 2.0 app integration for Dessn instead (it can carry provisioning alone), or ask
Okta support to enable it for your org.
</Step>
<Step>
### Connect it to Dessn
On the **Provisioning** tab, under **Settings › Integration**, press **Edit**:

| Field | Value |
| --- | --- |
| SCIM connector base URL | Your **SCIM base URL** from Dessn |
| Unique identifier field for users | `userName` |
| Supported provisioning actions | Tick **Push New Users**, **Push Profile Updates** and **Push Groups**. **Import New Users and Profile Updates** is optional |
| Authentication Mode | **HTTP Header** |
| Authorization (Bearer) | Your SCIM token from Dessn |

Press **Test Connector Configuration**: it should find users and groups. Then press **Save**.
</Step>
<Step>
### Choose what Okta sends
Under **Settings › To App**, press **Edit**, tick **Create Users**, **Update User Attributes** and **Deactivate Users**,
then press **Save**. Leave **Sync Password** off: Dessn doesn't use passwords.
</Step>
<Step>
### Assign people, and push groups
On the **Assignments** tab, assign the people or groups who should use Dessn. Okta creates them in Dessn.

To set roles from groups, open the **Push Groups** tab, press **Push Groups**, find each group you'll map in Dessn (for
example **Dessn Admins**) and press **Save**. Then map them in Dessn ([below](#roles-from-your-idps-groups)).
</Step>
</Steps>

Okta deactivates someone when you unassign them or deactivate them in Okta; Dessn then removes them and ends their
sessions. Okta matches people Dessn already has by `userName`, which Okta sets to the Okta username (usually the email
address).

## JumpCloud
<Steps>
<Step>
### Add provisioning to the Dessn app
In the JumpCloud Admin Portal, open **SSO Applications** and your Dessn app (the OIDC or SAML app you made for single
sign-on). Press **Actions**, then **Manage User Provisioning (SCIM Or Custom API)**. A **Provisioning** tab appears.
</Step>
<Step>
### Connect it to Dessn
On the **Provisioning** tab, under **Configuration Settings**:

| Field | Value |
| --- | --- |
| API Type | **SCIM API** |
| Use mTLS | Off |
| SCIM Version | SCIM 2.0 (shown) |
| Authentication method | **Bearer token** |
| Base URL | Your **SCIM base URL** from Dessn |
| Token Key | Your SCIM token from Dessn |

Press **Test Connection** (JumpCloud lists Dessn's users and groups). When it passes, JumpCloud asks for its activation
test:

| Field | Value |
| --- | --- |
| Test User Email | A new, unused address **on your verified domain**, for example `scim-test@your-domain.com`. JumpCloud creates, reads, updates and deletes this person in Dessn to check the connection. Dessn makes an account for it, and deleting it takes it off your team; the account itself stays, unused (ask us to remove it) |
| Source User | Any JumpCloud user: its profile fills the test user |
| Group Management | Tick **Enable management of User Groups and Group Membership in this application** to push groups for roles |
| Test User Group Name | A new, unused group name, for example `dessn-scim-test` |
| Source User Group | Any JumpCloud user group |

Then press **Activate**.
</Step>
<Step>
### Choose who is provisioned
On the app's **User Groups** tab, tick the user groups who should use Dessn and press **Save**. JumpCloud creates their
members in Dessn, and pushes those groups too, by name, for [roles](#roles-from-your-idps-groups).
</Step>
</Steps>

JumpCloud sends its username as `userName` and the address in `emails`; Dessn provisions the address. Suspending someone
in JumpCloud (Users › **Actions** › **Suspend Users**), or taking them off the app's user groups, deactivates them in
Dessn; **Activate Users** brings them back.

## Roles from your IdP's groups
In Team settings › Security, under **Roles from your identity provider's groups**, map each IdP group to **Admin**,
**Editor** or **Viewer**, and press **Save roles**.

- Each person gets the **highest** role any of their groups maps to. Someone in no mapped group gets **New people join
  as**.
- It applies when they join, each time they sign in through SSO, and each time your IdP changes their groups. Saving a
  new mapping applies it to everyone your IdP knows at once.
- **Owners are never changed** by it.
- People your IdP doesn't know (invited in Dessn, never provisioned, never signed in with groups) keep the role your team
  gave them. Once a mapping is set, your IdP decides the role of the people it knows: a role changed in Dessn goes back at
  their next sign-in or SCIM change.
- Group names match exactly, ignoring capitals and extra spaces. With no mapping, nobody's role changes.
- **Map only groups your admins control.** Anyone who can make a group your IdP sends, with a mapped name, gets that
  role. Send only the groups Dessn needs: in Okta, a groups claim filter; in Microsoft Entra ID, **Groups assigned to the
  application**.

Where Dessn learns someone's groups:

- **With SCIM:** the groups your IdP pushes (Okta's **Push Groups**, JumpCloud's **Group Management**). For people SCIM
  manages, only these count.
- **Without SCIM, at each sign-in:** OIDC, the `groups` claim (Okta: add a groups claim to the app's ID token; JumpCloud:
  **Include Group Attribute**, sent as `memberOf`); SAML, a `groups` attribute (also read: `memberOf`, `group`, and the
  Microsoft and ADFS group claim URIs). A sign-in that sends no groups changes nothing.

## What Dessn's SCIM server supports
| | |
| --- | --- |
| Resources | `/Users`, `/Groups`, and `/ServiceProviderConfig`, `/ResourceTypes`, `/Schemas` |
| Operations | `GET` (one, or a list), `POST`, `PUT`, `PATCH`, `DELETE` |
| User attributes kept | `userName`, `externalId`, `name.givenName`, `name.familyName`, `displayName`, `emails` (the primary, else the work one, else the first), `active`. Others are accepted and not kept |
| Filters | `userName eq`, `externalId eq`, `emails.value eq`, `id eq`; for groups `displayName eq`, `externalId eq`, `id eq`. Other filters are refused with `400 invalidFilter` |
| Paging | `startIndex` and `count`, up to 200 a page |
| Group lists | `excludedAttributes=members` lists groups without their members |
| Not supported | Bulk, sorting, ETags, password changes |
| Errors | RFC 7644 error bodies: `401` for a missing or wrong token, `400` (`invalidValue`, `invalidFilter`, `invalidSyntax`), `404`, `409 uniqueness` |

Dessn answers only to the connection's current token, over HTTPS, while **Single sign-on** is on for your team. The token is
stored as a SHA-256 hash and never shown again.

## Audit log
Every SCIM change is in Team settings › Security › **Recent activity** (filter: **Provisioning**): each person
provisioned, updated, deactivated, reactivated or deleted, each group pushed, changed or removed, each role a mapping
set, each session ended, and each request refused that named someone (an address off your verified domains, for
example), with the address and your IdP's client name. Reads (your IdP checking someone) are counted, one row per hour.
Requests without your team's current token aren't logged here: your IdP shows them as `401`. Token changes and mapping changes are listed under **Settings**,
with who made them.

## Troubleshooting
| What you see | What to check |
| --- | --- |
| `401` in your IdP's provisioning errors | The token was replaced or revoked, or pasted with a space. Generate a new one in Dessn and paste it again. |
| `400`: "… isn't one of this team's verified domains" | The person's address is on a domain your Dessn team hasn't verified. Verify that exact domain, or fix the address in your IdP. |
| `409 uniqueness` | Dessn already has someone with that `userName` for your connection. Let your IdP match existing people by `userName`. |
| Someone removed in Dessn came back | Your IdP still assigns them. Unassign them in your IdP. |
| A role didn't change | Check the group is mapped in Dessn with the name your IdP sends, and that your IdP pushes that group. Owners never change. |
