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

# Okta

## Get SCIM credentials from Bytebase

1. Log in to Bytebase as a **Workspace Admin**.
2. Navigate to **Settings** -> **General** -> **Network**.
3. Ensure **External URL** is configured (e.g., `https://bytebase.example.com`).
4. Navigate to **Settings** -> **Members**.
5. Click the **Directory Sync** button (or gear icon).
6. In the Directory Sync drawer, you'll find:
   * **SCIM Endpoint URL**: `https://<your-bytebase-url>/hook/scim/workspaces/<workspace-id>`
   * **Secret Token**: Bearer token for authentication
7. Copy both values - you'll need them in the next steps.

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/bytebase-setting.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=dcb7b8007d05c072a2de5b260b4339a3" alt="bytebase-setting" width="1600" height="771" data-path="content/docs/administration/scim/okta/bytebase-setting.webp" />

## Create SCIM application in Okta

1. Log in to the **Okta Admin Console** (`https://your-domain-admin.okta.com`).
2. In the left navigation, go to **Applications** -> **Applications**.
3. Click **Create App Integration**.
4. Select **SWA - Secure Web Authentication** and click **Next**.

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/create-app-integration.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=6db1a1e446629dd14db1a785c31804c7" alt="create-app-integration" width="1600" height="965" data-path="content/docs/administration/scim/okta/create-app-integration.webp" />

5. Configure the application:
   * **App name**: `Bytebase SCIM`
   * **App login page URL**: Your Bytebase external URL
   * You can also check "Do not display application icon to users" and "This is an internal application that we created" since it's only used for data sync.

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/create-swa-integration.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=842ebad74e7a3ceae84cbdac58e64589" alt="create-swa-integration" width="1157" height="1600" data-path="content/docs/administration/scim/okta/create-swa-integration.webp" />

## Configure API integration

1. Go to the **General** tab, in the **App Settings** section, click **Edit**.

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/general-tab-edit.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=8c92581a0a682c985542d8a1da2c1549" alt="general-tab-edit" width="1526" height="796" data-path="content/docs/administration/scim/okta/general-tab-edit.webp" />

2. Find the **Provisioning** field and select **SCIM**, then save the setting. After saving, the **Provisioning** tab will appear in the application.

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/provisioning-scim.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=1f736718557c26038db2e4aa06a2eb97" alt="provisioning-scim" width="1524" height="1556" data-path="content/docs/administration/scim/okta/provisioning-scim.webp" />

3. Go to the **Provisioning** tab, edit the integration:
   * **SCIM connector base URL**: The SCIM Endpoint URL from Bytebase (e.g., `https://bytebase.example.com/hook/scim/workspaces/abc123`)
   * **Unique identifier field for users**: `userName`
   * **Authentication Mode**: HTTP Header
   * **Authorization**: The Secret Token from Bytebase

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/scim-connection.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=b99be78a4bbcee037544ac71635a071a" alt="scim-connection" width="1555" height="1600" data-path="content/docs/administration/scim/okta/scim-connection.webp" />

4. Click **Test Connector Configuration** and save upon success.

## Enable provisioning features

1. Still on the **Provisioning** tab, click **To App** in the left sidebar.
2. Click **Edit** in the Provisioning to App section.
3. Enable the following features:
   * **Create Users**
   * **Update User Attributes**
   * **Deactivate Users**
4. Click **Save**.

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/provisioning-to-app.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=12294ed653210187713719496ca3668d" alt="provisioning-to-app" width="1600" height="1577" data-path="content/docs/administration/scim/okta/provisioning-to-app.webp" />

## Configure user attribute mappings

No changes are needed for the default attribute mapping configuration.

## Assign users to the application

### Assign individual users

1. Go to the **Assignments** tab.
2. Click **Assign** -> **Assign to People**.
3. Find and select the users you want to provision.
4. Click **Assign** next to each user.
5. Review the user's attribute values (you can customize per user if needed).
6. Click **Save and Go Back**.
7. Click **Done** when finished.

### Assign groups (preferred)

1. Go to the **Assignments** tab.
2. Click **Assign** -> **Assign to Groups**.
3. Select the groups whose members should be provisioned.

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/assign-to-groups.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=c40a1898ec640faa009400d2e98e5733" alt="assign-to-groups" width="1476" height="604" data-path="content/docs/administration/scim/okta/assign-to-groups.webp" />

4. Click **Assign**, review the attribute values, and click **Save and Go Back**.

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/assign-groups-dialog.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=16ef7ab13c89574540161ef4d0f603e4" alt="assign-groups-dialog" width="1354" height="1390" data-path="content/docs/administration/scim/okta/assign-groups-dialog.webp" />

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/assign-groups-attributes.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=64b202c2644c5171cad59d20a1258f0b" alt="assign-groups-attributes" width="933" height="1600" data-path="content/docs/administration/scim/okta/assign-groups-attributes.webp" />

5. Click **Done** when finished.

<Note>
  Assigning a group provisions all members as users, but **does not create the group in Bytebase**. To sync groups, see [Configure group push](#configure-group-push) below.
</Note>

## Configure group push

To sync Okta groups to Bytebase (not just group members as users):

1. Go to the **Push Groups** tab.
2. Click **Push Groups**, search group by name or rule.
3. Click **Save**, then wait and check the status.

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/push-groups.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=37677005777428eb8e02b3b932f52686" alt="push-groups" width="1600" height="1509" data-path="content/docs/administration/scim/okta/push-groups.webp" />

After the status changes to **Active**, the groups are successfully synced to Bytebase.

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/push-groups-active.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=2beacb8fba474e5cf13792135e3353af" alt="push-groups-active" width="1600" height="874" data-path="content/docs/administration/scim/okta/push-groups-active.webp" />

<img src="https://mintcdn.com/dbx/Vgmeqll5ho7snBC3/content/docs/administration/scim/okta/bytebase-groups-synced.webp?fit=max&auto=format&n=Vgmeqll5ho7snBC3&q=85&s=8529491512d578cf72ff2da6b27553ba" alt="bytebase-groups-synced" width="1042" height="784" data-path="content/docs/administration/scim/okta/bytebase-groups-synced.webp" />
