Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Okta SCIM Provisioning

Add a SCIM provisioning app in Okta next to the app you sign in to Herd with, so the people you assign in Okta are added to Herd and the people you unassign or deactivate are removed. Single sign-on a

Why you need it

Single sign-on decides who can sign in to Herd. It never tells Herd that someone has left. When you deactivate a person in Okta, or take them off the Herd app, they can no longer sign in, but they stay on Herd's Users list: they keep receiving training, reminders and simulations, and they count in your completion rates.

Two things make Okta removals reach Herd. Use one of them:

SCIM provisioning (this guide)
Okta directory sync

Where

The Herd app from the Okta catalog (its Provisioning tab), or a second Okta app used only for provisioning next to an OIDC app you created yourself

Herd Settings → Integrations → Okta, with an Okta API token or service app

How

Okta pushes each change to Herd as it happens

Herd reads your Okta users and groups on a schedule, plus Okta event hooks

Okta requirement

Provisioning on your Okta org (Okta Lifecycle Management). Without it the app has no provisioning settings.

None beyond an admin who can create an API token or service app

If your Okta org has no Lifecycle Management, use the Okta directory sync instead.

Before you start

  • Okta SSO is set up for Herd (see Okta Single Sign-On).

  • A Herd administrator with the org.integrations permission (the Organization Admin role has it), which the SCIM provisioning card needs.

  • An Okta administrator role that can create app integrations and edit their provisioning and profiles (for example Super Administrator or Application Administrator).

You add a second Okta app. You don't change the one you sign in with. The Herd sign-in app is an OIDC app made with Create App Integration, and Okta does not support adding SCIM provisioning to an OIDC app made that way (the Classic experience). Okta's own workaround is a separate app that only provisions, and its sign-in side never has to work. Your Herd sign-in keeps running unchanged on the first app.

Add Herd from the Okta catalog

If you add Herd from the Okta Integration Network catalog (Applications → Browse App Catalog) and the instance offers provisioning, you don't need the Classic SWA or SAML app of step 2. Create the token (step 1), then in the instance's Provisioning tab enter these values:

Okta field
Value

SCIM base URL

The SCIM base URL from Herd (ends in /scim/v2)

Authentication

Bearer or HTTP Header, with the SCIM token as the credential (step 3 explains the token format)

Unique identifier for users

userName (the person's email)

Supported actions

Push New Users, Push Profile Updates; Push Groups if you want groups (see Push groups)

Import Groups

Clear the checkbox under Enable API integration: Herd is not a source of groups for Okta. Okta warns that clearing it removes the app's groups from Okta, which is fine on a new instance. There is no user-import switch

Attribute mapping

userName = email; displayName = first name + last name; active

Then follow step 4 (what Okta sends), assign people (step 6) and check it works. Notes for a catalog instance:

  • externalId is ignored. Herd matches people by userName, so Okta's own identifier isn't used.

  • Names come from displayName, or from name.givenName + name.familyName. Map displayName to first + last as above; when it is absent, Herd composes the name from the given and family names. If neither is mapped, people show no name.

  • Group push goes into ordinary groups only. Herd refuses pushes into groups that grant admin permissions and into rule-based groups (see Push groups).

The other steps below describe the Classic app and apply to the catalog instance only where named above.

Step 1: Create a SCIM token in Herd

  1. In Herd, open Settings → General and, under API & provisioning, open SCIM provisioning.

  2. Copy the SCIM base URL (it ends in /scim/v2).

  3. Select Create SCIM token, name it (for example Okta provisioning) and create it.

  4. Copy the token now. Herd shows it once; if you lose it, revoke it and create another.

Step 2: Create the provisioning app in Okta

In the Okta Admin Console, go to Applications, select Create App Integration and choose the Classic experience.

  1. For the sign-in method, choose SWA (or SAML 2.0). Okta adds SCIM only to SAML and SWA apps made this way.

  2. Name it so nobody mistakes it for the sign-in app, for example Herd provisioning. For SWA, the sign-in page URL can be your Herd address; nobody signs in through this app.

  3. Hide the app from your users' Okta dashboards in its visibility settings, so people only ever see the real Herd sign-in app.

  4. Finish the wizard.

Don't assign anyone yet. You assign people in step 6, after provisioning is on.

Step 3: Turn on SCIM

  1. On the new app's General tab, under App Settings, select Edit. Set Provisioning to SCIM and select Save. A Provisioning tab appears.

  2. On the Provisioning tab, open Settings → Integration and select Edit:

    • SCIM connector base URL: the SCIM base URL from Herd.

    • Unique identifier field for users: userName.

    • Supported provisioning actions: Push New Users and Push Profile Updates. Add Push Groups only if you want Okta groups in Herd too (see Push groups). Leave Import New Users and Profile Updates off: Herd is not a source of people for Okta.

    • Authentication Mode: HTTP Header.

    • Authorization: paste the SCIM token from Herd.

  3. Test the connector configuration from the same page, then select Save.

Herd accepts the token with or without the Bearer prefix (Authorization: Bearer herdscim_… or Authorization: herdscim_…), so paste the token on its own.

Step 4: Choose what Okta sends

On the Provisioning tab, open Settings → To App and select Edit. Enable:

  • Create Users: assigning someone to the provisioning app adds them to Herd.

  • Update User Attributes: profile changes in Okta reach Herd.

  • Deactivate Users: unassigning someone from the provisioning app, or deactivating them in Okta, removes them from Herd, unless another connected user sync still has them active (see the warning under Before you start). This is the setting that removes leavers.

Select Save.

Okta never deletes a user over SCIM. It deactivates them. In Herd a deactivated person is removed, not erased: they leave the Users list and rule-based groups such as Everyone, the sessions they already hold stop working, and their training history stays. An Okta-side reactivation of the same app user brings the same person back.

Step 5: Check the attribute mappings

Still on To App, scroll to the app's attribute mappings.

  • Username (userName) must be the person's email address. Herd matches and creates people by email. Set the app's username format to the person's email.

  • Display name (displayName): Herd shows this as the person's name. Map it to user.displayName, or to user.firstName + " " + user.lastName. Herd reads userName, displayName, name.givenName, name.familyName, active and roles. When displayName is absent, the name is composed from name.givenName and name.familyName, so a person still shows a name. emails is accepted but never written (the address always comes from userName), and externalId is ignored. If the list has no displayName, add it in the Profile Editor (Directory → Profile Editor, filter Apps, open this app's profile, Add Attribute) with external name displayName (and, if the form asks for an external namespace, urn:ietf:params:scim:schemas:core:2.0:User), then map it.

Send who gets the Herd app (optional)

Only while the identity-provider switch is on (see App Access: SCIM provisioning). SCIM can then grant and withdraw the Herd app through the roles attribute, alongside the sign-in claim:

  1. In the Profile Editor, on the provisioning app's profile, add an attribute: data type string array, variable and external name roles, Attribute type: Group (if the form asks for an external namespace, urn:ietf:params:scim:schemas:core:2.0:User).

  2. On the provisioning app's Assignments tab, edit the assignment of your herd-app group and set roles to herd-app, the same value as your app-access claim.

Send the same values over SCIM as in the sign-in claim; otherwise a sign-in grants what the next SCIM push withdraws, or the other way round. A push without roles leaves app access alone.

Step 6: Assign people

On the provisioning app's Assignments tab, assign the same groups you assign to the Herd sign-in app. Okta provisions each person as they are assigned.

From now on, keep the two apps' assignments in step: removing someone from the sign-in app only stops them signing in; removing them from the provisioning app (or deactivating them in Okta) is what removes them from Herd. If Slack, Teams or a directory sync is also connected, remove them there too.

Before creating anyone, Okta looks the person up by userName. Herd answers with the active Herd user that has that email, and Okta links to it instead of creating a duplicate. People who are already inactive in Herd are not returned by that lookup, so Okta asks Herd to create them. Herd restores their earlier, inactive record, with the same history, instead of creating a duplicate. If their email now belongs to another active person, Herd refuses with 409.

In Herd, the SCIM provisioning card shows the token's Last used time once Okta has authenticated. From then on, the Users page stops warning that removals in Okta don't reach Herd.

Push groups (optional)

With Push Groups on, Okta can create Okta groups in Herd and keep their members in step. Use the app's push-groups settings to push a group by name.

  • Okta doesn't support pushing the same group you use to assign the app. Push other groups.

  • If Herd already has a group with that name, creating it fails with "Group already exists". Link the Okta group to the existing Herd group instead of creating one.

  • Operators and Reviewer are the exception. Okta can't find or link Herd's groups of those names, and pushing an Okta group with either name renames Herd's to Operators (Herd) or Reviewer (Herd) and creates yours as an ordinary group, without Herd's permissions.

  • Herd refuses membership pushes to its platform groups (such as Everyone), to rule-based (dynamic) groups, and to any group that grants permissions, such as Full Access. Manage those in Herd.

  • Unlinking a pushed group and choosing to delete it in the app removes the group in Herd, unless a compliance campaign targets it or another group's rule names it.

Check it works

  1. Assign a test person to the provisioning app in Okta. Shortly after, they appear on Herd's Users page.

  2. Unassign them, or deactivate them in Okta. They leave Herd's Users list (turn on Show Inactive Users in the Users filter menu to see them, with their history).

Troubleshooting

What you see
What it means
Fix

No Provisioning option on the app's General tab

The app is an OIDC app (such as the Herd sign-in app), or your Okta org has no provisioning (Lifecycle Management).

Add SCIM to a separate SWA or SAML app (step 2). Without Lifecycle Management, use the Okta directory sync.

The connector test fails with 401

The token is wrong, incomplete, revoked or from another Herd organization, or the Bearer prefix is doubled.

Check the token field (step 3). If that's not it, create a new token in Herd and paste it again.

Catalog instance: the connector test fails with 401

The token is wrong, revoked or from another Herd organization, or the base URL is not Herd's.

Copy the SCIM base URL and a new token from Settings → General → API & provisioning → SCIM provisioning.

People appear in Herd with no name

Neither displayName nor name.givenName/name.familyName is mapped.

Map displayName (step 5), or the first and last name, and push the profiles again.

A group push fails with 400 or 403

The Herd group is rule-based (400), or a platform group or one that grants permissions a SCIM token may not confer (403).

Manage that group in Herd, and push a different one.

For everything Herd's SCIM server supports, see SCIM Provisioning.

Verified against

Checked on 2026-10-21 against Okta's official documentation, not in a live Okta org. Okta's console labels change; where this guide names a setting generically, follow the label your console shows.

Last updated