SCIM through Okta
You're done
Last updated
Was this helpful?
This guide walks you through configuring SCIM provisioning between Okta and StackAI. Once set up, user creation, profile updates, deactivations, and role mapping flow automatically from Okta into your StackAI organization.
Before you start
SAML SSO between Okta and StackAI must already be configured (this guide assumes the StackAI SAML app integration already exists in Okta).
You need admin access in both StackAI and your Okta org.
In Okta's SCIM Connection editor, fill in:
SCIM connector base URL — paste the URL you just copied from StackAI.
Unique identifier field for users — userName
Supported provisioning actions — check all of:
Import New Users and Profile Updates
Push New Users
Push Profile Updates
Push Groups
Import Groups
Authentication Mode — HTTP Header

In StackAI, under SCIM Provisioning → Role Mappings, click + Add Mapping. For each mapping, set:
IdP Role Value — the role name exactly as you will write it in Okta (e.g. Admin).
Organization Role — the matching StackAI role (e.g. Admin).
Repeat for every role you plan to assign through Okta. The IdP Role Value must match exactly what you'll enter in Okta in step 17.

Fill the form with these exact values so the role pushed from Okta is mapped correctly to StackAI:
Data type
string
Display name
Role
Variable name
stackaiRole
External name
roles.^[primary==true].value
External namespace
urn:ietf:params:scim:schemas:core:2.0:User
Description
(leave blank)
Enum
(leave unchecked)
Attribute length
Between (leave min/max blank)
Attribute required
(leave unchecked)
Attribute type
Personal
Click Save.

SCIM provisioning is now active. From this point on:
New users assigned to StackAI in Okta are created automatically in StackAI with the role you set.
Profile and role changes in Okta sync to StackAI.
Unassigning a user in Okta (or deactivating them) deactivates them in StackAI.
If something doesn't sync as expected, check View Logs / Monitor Imports at the top of the StackAI app in Okta, and the Audit Logs page in StackAI.
Last updated
Was this helpful?
Was this helpful?

