> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squasher.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# SCIM provisioning

> Let your identity provider add, update, and remove organization members.

Squasher accepts SCIM 2.0 from Okta, Microsoft Entra ID, and other identity providers. The identity provider adds people to your organization, keeps their names and emails current, and removes them when they leave.

## Before you start

* You are an owner or admin of the organization. Security admins can see the connection but cannot change it.
* Your organization has single sign-on with a **verified domain** (**Settings → Organization → Access, SSO, SCIM, and audit**). SCIM adds only people whose email is on a verified domain. A user with an email on another domain is rejected.

## Connect your identity provider

1. In **Settings → Organization → Access, SSO, SCIM, and audit**, select **Connect** on **Automatic provisioning (SCIM)**.
2. Select **Create token**. Copy the **SCIM base URL** and the **bearer token**. The token is shown once and expires after one year.
3. In your identity provider, create a SCIM 2.0 app connection:
   * **Base URL**: the SCIM base URL, for example `https://app.squasher.ai/api/auth/scim/v2`.
   * **Authentication**: HTTP header, bearer token.
   * **User identifier**: the user's email address (`userName`).
4. Turn on create, update, and deactivate for users. Push groups if you want to set roles.

Each organization has one SCIM connection. A token works only for its own organization.

## What SCIM changes

| In your identity provider | In Squasher |
| - | - |
| Assign a user to the app | The user becomes a member. An existing Squasher account with that email is reused. |
| Change the name or email | The profile changes. A new email must also be on a verified domain. |
| Deactivate or unassign the user | The membership is removed and the user is signed out of Squasher. |
| Reactivate the user | The membership comes back. |
| Add the user to a `squasher-<role>` group | The user gets that role. |

## Roles from groups

Push a group with one of these names (upper or lower case) to set the role of its members:

| Group name | Role |
| - | - |
| `squasher-admin` | Admin |
| `squasher-security-admin` | Security admin |
| `squasher-billing-admin` | Billing admin |
| `squasher-member` | Member |

When a user is in more than one of these groups, the highest role applies. Other groups do not change roles. When a user leaves all of these groups, a role that SCIM gave goes back to **Member**. A role that a person set by hand stays until SCIM gives a different role.

SCIM never gives, changes, or removes the **Owner** role. Manage owners in **Settings → Members**.

## Replace or remove the connection

* **New token** issues a new token and stops the old one at once. Paste the new token into your identity provider.
* **Remove** stops the token for good. Members that the connection added leave the organization and are signed out. Owners stay.

Every connection, token, and membership change appears in the [audit log](https://docs.squasher.ai/features/audit-log.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.