> ## 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.

# Set Up SCIM with Okta

This guide walks an organization admin through configuring SCIM provisioning so that Okta automatically manages user accounts in Vibranium Labs. When complete, assigning or removing users in Okta will automatically create or deactivate their Vibranium Labs accounts.

***

## Prerequisites

* **Okta SSO must be configured first** — SCIM provisioning requires an active Okta SSO integration.
* Organization admin access in Vibranium Labs.
* Admin access to your Okta tenant.

***

## Part 1 — Generate a SCIM Token in Vibranium Labs

### Step 1 — Open SCIM Provisioning Settings

1. Log in to Vibranium Labs as an organization admin.
2. Navigate to **Settings → Integrations**.
3. Locate the **Okta SSO** card and click **Configure**.
4. Open the **SCIM Provisioning** tab.

### Step 2 — Generate a Bearer Token

1. Click **Generate Token**.
2. A token will be displayed. **Copy it immediately** — it will not be shown again.
3. Store the token securely (e.g., in a password manager). You will paste it into Okta in the next section.

![Image](https://mintlify.s3.us-west-1.amazonaws.com/vibranium-labs/images/image-44.png)

### Step 3 — Copy the SCIM Base URL

The SCIM base URL is displayed in the provisioning settings. It looks like:

```javascript theme={null}
https://api-prod.vibraniumlabs.ai/scim/v2/your-organization-identifier
```

Copy this URL. You will need it when configuring Okta.

> **Important:** Do not manually construct the URL. Always copy it from the Vibranium Labs portal to ensure correctness.

### Step 3a (optional) — Choose the Role for New Accounts

On the same tab, pick the **Role for new accounts**. Everyone SCIM creates gets this role (Member unless you change it); it is saved as soon as you pick it. People who already have an account keep their role. See Choosing the Role for New Accounts in the SCIM Provisioning Overview (parent page).

***

## Part 2 — Configure Okta

### Step 4 — Enable Provisioning in Your Okta App

1. Sign in to the Okta Admin Console.
2. Navigate to **Applications → Applications**.
3. Select your existing **Vibranium Labs** application (created during SSO setup).
4. Click the **Provisioning** tab.
5. Click **Configure API Integration**.
6. Check **Enable API Integration**.

### Step 5 — Enter SCIM Connection Details

| Field | Value |
| - | - |
| SCIM connector base URL | The SCIM base URL from Step 3 |
| Unique identifier field for users | `userName` |
| Supported provisioning actions | Create Users, Update User Attributes, Deactivate Users |
| Authentication Mode | HTTP Header |

For the **Authorization** header value, enter:

```javascript theme={null}
Bearer <your-token-from-step-2>
```

### Step 6 — Test the Connection

1. Click **Test API Credentials**.
2. You should see a success message confirming connectivity.
3. Click **Save**.

> **If the test fails:**

> * Verify the SCIM base URL was copied exactly (no trailing slash).

> * Verify the Bearer token was copied completely (starts with `vl_scim_`).

> * Ensure SCIM provisioning is enabled in the Vibranium Labs portal.

### Step 7 — Enable Provisioning Actions

After saving, the Provisioning tab will show additional options:

1. Click **To App** in the left sidebar.
2. Click **Edit**.
3. Enable the following:
   * **Create Users** — ✅
   * **Update User Attributes** — ✅
   * **Deactivate Users** — ✅
4. Click **Save**.

> **Note:** Do not enable "Sync Password" — Vibranium Labs does not use passwords for SSO users.

### Step 8 — Configure Attribute Mapping

Okta will show a default attribute mapping. Verify the following mappings are present:

| Okta attribute | SCIM attribute |
| - | - |
| `userName` | `userName` |
| `givenName` | `name.givenName` |
| `familyName` | `name.familyName` |
| `email` | `emails[0].value` |
| `displayName` | `displayName` |

The default mappings should work without changes for most organizations.

***

## Part 3 — Assign Users

### Step 9 — Assign Users or Groups

1. In the Okta application, click the **Assignments** tab.
2. Click **Assign → Assign to People** (or **Assign to Groups** for bulk provisioning).
3. Select the users or groups who should have access to Vibranium Labs.
4. Click **Assign** and then **Save and Go Back**.

Assigned users will be automatically provisioned in Vibranium Labs within a few seconds.

### Step 10 — Verify Provisioning

1. In the Vibranium Labs portal, navigate to **Settings → Members**.
2. Confirm that the assigned users appear in the member list.
3. Their status should be **Active**.

***

## Managing Users

### Adding New Users

Assign additional users to the Okta application. They will be automatically provisioned in Vibranium Labs.

### Removing Users

Unassign a user from the Okta application, or deactivate them in Okta. Their Vibranium Labs access will be revoked automatically.

> **What happens when a user is deactivated:**

> * The user can no longer sign in to Vibranium Labs.

> * Their historical data (incidents, comments, audit logs) is preserved.

> * Their account is not deleted — it can be reactivated later.

### Reactivating Users

Reassign the user to the Okta application. Their Vibranium Labs access will be restored automatically.

***

## Token Rotation

We recommend rotating your SCIM token periodically (e.g., every 90 days) for security. The rotation process is zero-downtime:

1. In Vibranium Labs, navigate to the SCIM provisioning settings.
2. Click **Rotate Token**.
3. Copy the new token.
4. In Okta, update the API Credentials with the new token.
5. Test the connection in Okta.
6. (Optional) Click **Revoke Previous Token** in Vibranium Labs to immediately invalidate the old token.

> **Grace period:** After rotation, the previous token remains valid for **24 hours**. This gives you time to update Okta without any provisioning downtime. After 24 hours, the old token is automatically invalidated.

***

## Disabling SCIM

To disable SCIM provisioning without removing Okta SSO:

1. In Vibranium Labs, navigate to the SCIM provisioning settings.
2. Toggle **SCIM Provisioning** to off.

> **Important:** Disabling SCIM does not deactivate any existing users. They retain their current access level. However, new assignments and deactivations in Okta will no longer sync.

***

## Troubleshooting

> [accordion] "Test API Credentials" fails in Okta
>
> * Verify the SCIM base URL has no trailing slash.
> * Verify the Bearer token starts with `vl_scim_` and was copied in full.
> * Check that SCIM provisioning is enabled in the Vibranium Labs portal.
> * If you recently rotated the token, ensure you're using the new token.

> [accordion] User already exists error (409 Conflict)
>
> The user's email address already exists in a different Vibranium Labs organization. A single email can only belong to one organization. Contact support if this user needs to be moved.

> [accordion] User not created after assignment
>
> * Check the Okta **Tasks** view (System Log → filter for SCIM errors) for provisioning failures.
> * Verify the user has a valid email address in Okta.
> * Ensure the SCIM token has not expired or been revoked.

> [accordion] User deactivated but can still log in
>
> Allow a few seconds for the status change to propagate. If the issue persists, verify in **Settings → Members** that the user's status is "Revoked."

> [accordion] "userName cannot be changed" error
>
> Vibranium Labs does not support email/username changes via SCIM. If a user's email needs to change:
>
> 1. Deactivate the user with the old email in Okta.
> 2. Create a new assignment with the new email.

> [accordion] Lost SCIM token
>
> SCIM tokens are shown only once at generation. If lost:
>
> 1. Click **Rotate Token** to generate a new one.
> 2. Update the token in Okta.
> 3. Test the connection.

***

## Supported Okta Provisioning Features

| Okta Feature | Supported |
| - | - |
| Create Users | ✅ |
| Update User Attributes | ✅ (display name only) |
| Deactivate Users | ✅ |
| Sync Password | ❌ Not applicable |
| Push Groups | ❌ Not supported |
| Profile Master | ❌ Not supported |
| Import Users | ❌ Not supported |

***

## Next Steps

* Assign all team members who need Vibranium Labs access via Okta groups for easier management.
* Set a calendar reminder to rotate the SCIM token every 90 days.
* Review the SCIM Provisioning Overview (parent page) for details on supported attributes and behaviors.


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