> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/guides-and-quickstarts/organization-administration/scim-provisioning/scim-provisioning-with-okta.md). Agents can also search and read this documentation through its [MCP server](https://docs.stackai.com/~gitbook/mcp).

# SCIM provisioning with Okta

Use Okta SCIM provisioning to manage StackAI users and groups from your directory. Configure user lifecycle operations, role mappings, and Group Push for the records you want to synchronize.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FHurz1eweBWLNorhvMUWO%2FG094A.mp4?alt=media&token=442a1a9a-4ac3-4485-899f-746a6bfea0d2>" %}

## Before you start

Complete the prerequisites in [SCIM provisioning](https://docs.stackai.com/guides-and-quickstarts/organization-administration/scim-provisioning.md), including SSO, the default role, and an agreed activation and group-sync policy. Have your Okta administrator configure the application and own user assignments and Group Push. Test one intended assignment before expanding the scope.

You need administrative access to the Okta application and StackAI provisioning settings.

## Configure StackAI provisioning

Select Okta in SCIM Provisioning and review the default role and synchronization options.

![Okta provisioning defaults in StackAI](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/3T3X826C60yy32fzW57W/assets/g094a-g094a-01-defaults.png)

Use a default role appropriate for newly provisioned users.

Create a dedicated token and review the enablement and role-mapping notices.

![Provisioning token and enablement notices](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/eIIO5EgsiBrm1e44j77A/assets/g094a-g094a-02-credential.png)

Store the credential securely for the Okta integration.

Map the role value sent by Okta to the required StackAI organization role.

![Okta role mapping in StackAI](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/Ml3807TmSjaBm8TFQHz2/assets/g094a-g094a-03-mapping.png)

Complete the mapping before provisioning users who depend on it.

## Configure Okta provisioning

In Okta's Provisioning integration, enter the StackAI base URL and configure the user identifier and bearer authentication.

![Okta SCIM endpoint and bearer authentication](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/kE451zCezKYwusPKwbNs/assets/g094a-g094a-04-connection.png)

Check connectivity using the intended provisioning configuration.

Open Provisioning → To App and review creation, profile update, and deactivation settings.

![Okta To App lifecycle operations](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/nh6CjahpfKAHKDNDUlsf/assets/g094a-g094a-05-lifecycle.png)

Save only the lifecycle operations the organization intends to manage through Okta.

Inspect the application profile and role attribute mapping.

![Okta profile and role attribute mapping](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/tQu7RVhqPIdrqx0BTGn6/assets/g094a-g094a-06-attributes.png)

The value Okta sends must match the incoming role value configured in StackAI.

## Inspect provisioning events

Review the relevant Okta System Log events.

![Okta System Log operation results](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/aKmFQ7TTFLg7HWZgHUJF/assets/g094a-g094a-07-logs.png)

Inspect each operation's outcome instead of relying only on the application's Active status.

## Synchronize groups

Open Push Groups and inspect the intended group.

![Okta Push Groups configuration](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/5sl6xyVmitG3PNa7m43O/assets/g094a-g094a-08-push.png)

Follow Okta's requirements for group assignment and Group Push configuration.

After changing membership, inspect the corresponding group and member state in StackAI.

![Synchronized StackAI group membership](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/bvYXj209Ckv05MaORoYP/assets/g094a-g094a-09-membership.png)

Confirm the intended change without affecting unrelated assignments.

## Important behavior

Okta application assignments and Group Push serve different purposes. Configure both according to your intended user and group scope.

The role value sent by Okta must match the incoming value in the StackAI role mapping.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/guides-and-quickstarts/organization-administration/scim-provisioning/scim-provisioning-with-okta.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
