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

# SCIM Provisioning Overview

SCIM (System for Cross-domain Identity Management) enables your identity provider to automatically manage user accounts in Vibranium Labs. When configured, user creation, profile updates, and deactivation in your IdP are synchronized to Vibranium Labs in real time — no manual user management needed.

***

## What SCIM Does

| Action in your IdP | Result in Vibranium Labs |
| - | - |
| Assign user to the app | User account is created with your organization's role for new accounts (or linked if an account with that email already exists, keeping its role, teams and schedules) |
| Update user profile (name) | User's display name is updated |
| Unassign / deactivate user | User access is revoked (account is preserved) |
| Reactivate user | User access is restored |
| Delete user in the IdP | User access is revoked (account is preserved) |

## What SCIM Does Not Do

* **Delete accounts** — Deprovisioning, including a delete from your IdP, revokes access but never deletes user records. Historical data (incident participation, audit logs) is preserved.
* **Sync groups** — Group membership is not currently synchronized. Assigning a group to the app decides who is provisioned; it does not create teams.
* **Change email addresses** — A user's email (username) can't be changed through SCIM; your IdP reports an error for that person. To move someone to a new address and keep their account and history, contact support. Otherwise, unassign the old address (its access is revoked) and assign the new one, which creates a new account.
* **Manage roles** — New users get your organization's **Role for new accounts** (Member unless an admin chose another; see Choosing the Role for New Accounts below). Later role changes are made in the Vibranium Labs portal.

## Choosing the Role for New Accounts

Accounts that SCIM creates get your organization's **Role for new accounts**. The same role goes to accounts created when someone first signs in through SSO (JIT provisioning) or with Sign in with Slack. An organization admin chooses it:

1. Go to **Settings → Integrations** and find **Authentication & SSO**.
2. On your SSO card (**Okta SSO** or **OIDC SSO**), click **Configure**.
3. Open the **SCIM Provisioning** tab. The **SSO** tab shows the same setting.
4. Pick a role under **Role for new accounts**. It is saved as soon as you pick it; there is no Save button to click.

* If no role has been chosen, new accounts get **Member**.
* **Admin** can't be chosen, so being assigned in your IdP never makes someone an admin. Make admins in the portal.
* Custom roles can be chosen. If the chosen role is later deleted, new accounts get Member.
* The role applies only to accounts created from then on. Existing accounts, including ones SCIM links because the email matches, keep their role. People you invite get the role chosen in their invite.

***

## How It Relates to SSO

| | SSO (Login) | SCIM (Provisioning) |
| - | - | - |
| **Purpose** | Authenticates users at login | Creates and manages user accounts |
| **When it runs** | Every time a user signs in | When your IdP pushes changes |
| **Prerequisite** | None | SSO must be configured first |
| **User experience** | Redirects to IdP login page | Invisible to end users |

> **Key point:** A user provisioned via SCIM still logs in through SSO. SCIM creates the account; SSO handles authentication. Deactivation via SCIM revokes portal access without affecting the user's IdP account.

***

## Supported Identity Providers

| Provider | Status |
| - | - |
| Okta | Fully supported |
| Microsoft Entra ID | Fully supported |

***

## Protocol Details

| Aspect | Value |
| - | - |
| Protocol version | SCIM 2.0 |
| Authentication | OAuth Bearer Token |
| Supported resources | Users |
| Supported operations | Create, Read, List, Update (PUT and PATCH), Deactivate/Reactivate, Delete (revokes access) |
| Filter support | `userName eq "email"` only |
| Bulk operations | Not supported |
| Max list results | 100 |

***

## Supported User Attributes

### Inbound (IdP → Vibranium Labs)

| SCIM Attribute | Mapped To | Required |
| - | - | - |
| `userName` | User email (primary identifier) | Yes |
| `emails[primary].value` | User email (fallback) | — |
| `displayName` | Display name | No |
| `name.givenName`  • `name.familyName` | Display name (joined) | No |
| `name.formatted` | Display name | No |
| `active` | Account status (active/revoked); `true`/`false` or `"True"`/`"False"` | No (defaults to true) |
| `externalId` | The IdP's own ID for the user, echoed back | No |

### Outbound (Vibranium Labs → IdP)

| SCIM Attribute | Source |
| - | - |
| `id` | Internal user ID |
| `externalId` | The IdP's ID for the user, when the IdP sent one |
| `userName` | User email |
| `displayName` | Display name |
| `emails` | `[{ value: email, primary: true }]` |
| `active` | `true` if not revoked |

***

## Deprovisioning Behavior

When a user is unassigned or deactivated in your IdP:

1. Your IdP sends `active: false` to Vibranium Labs.
2. The user's status is set to **Revoked**.
3. The user can no longer access the Vibranium Labs portal.
4. The user's historical data (incidents, timeline entries, audit logs) is preserved.
5. The user remains visible in your organization's member list with a "Revoked" status.

To restore access, reactivate the user in your IdP. Vibranium Labs will set their status back to Active.

***

## Security

### Token Management

* SCIM uses a **Bearer token** for authentication (not your SSO credentials).
* The token is generated in the Vibranium Labs portal and shown **only once**. Store it securely.
* Only a cryptographic hash is stored on our side — we cannot retrieve your token if lost.
* You can **rotate** the token at any time. The previous token remains valid for 24 hours to allow a smooth transition.
* You can **immediately revoke** the previous token if needed (e.g., suspected compromise).

### Access Control

* SCIM endpoints are scoped to your organization. A token for one organization cannot access another.
* All SCIM operations are logged for audit purposes.

***

## Getting Started

See the provider-specific setup guide in the subpage below.

* [Set Up SCIM with Okta](https://docs.vibraniumlabs.ai/administration/login-and-authentication/scim/set-up-scim-with-okta.md)

* [Set Up SCIM with Microsoft Entra ID](https://docs.vibraniumlabs.ai/administration/login-and-authentication/scim/set-up-scim-with-microsoft-entra-id.md)


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