Connect Okta

A read-only API Services app, so EntiPath can sync people, groups, rules and applications.

On this page

Before you begin

  • An Okta super administrator account, to create the app in Okta.
  • An EntiPath owner or admin account.
  • An Okta org on an okta.com address. oktapreview.com, okta-emea.com, okta-gov.com and okta-mil.com work too; a custom domain doesn’t.

It takes about 10 minutes.

Note. This connection only reads. EntiPath can’t change anything in Okta through it. Applying approved plans uses a separate app, which you can add later.
1

Generate a key in EntiPath

In EntiPath

  1. Go to Integrations and click Add a source.
  2. Click Connect on the Okta row.
  3. Keep OAuth service app selected, then click Generate key.EntiPath shows a public key and its Key ID (KID). Leave this page open: you’ll copy the key in part 2.
The Connect Okta page in EntiPath, with OAuth service app selected and the Generate key button
Note. The private key never leaves EntiPath. The key waits 24 hours for you, even if you reload, as long as you stay signed in as the same person. Generate a new key replaces it, and a key already added in Okta then stops matching.
2

Create the app in Okta

In the Okta Admin Console

  1. Go to Applications › Applications and click Create App Integration.
  2. Choose API Services, name it EntiPath, and click Save.
  3. On the General tab, under Public keys, click Edit.
  4. Set Configuration to Save keys in Okta.
  5. Click Add, paste the public key from EntiPath, and click Done.
  6. Click Save.The key shows as Active, with the same KID as in EntiPath.
  7. Under Client Credentials, click Edit, set these, then click Save:
    Client authentication
    Public key / Private key
    Require DPoP
    Leave it as it is. EntiPath works either way.
  8. Copy the Client ID. It starts with 0oa, and you’ll paste it in part 4.
Important. Do these in order. Okta only lets the app sign in with a key once the key has been added, and left on the client secret Okta creates it with, connecting fails.
3

Grant scopes and a read-only role

In the Okta Admin Console, on the EntiPath app

  1. Open the Okta API Scopes tab.
  2. Click Grant next to each of these:
    okta.users.read
    Required
    okta.groups.read
    Required. Also covers group rules.
    okta.apps.read
    Required
    okta.logs.read
    Required
    okta.roles.read
    Optional. Only to show who holds Okta admin roles, which also needs its own guide. You can add it later.
  3. Open the Admin roles tab and click Edit assignments.
  4. Choose Read-only Administrator, then click Save changes.
Note. EntiPath asks Okta for all 4 required scopes when it signs in, so it can’t connect without any one of them. Okta checks the role as well as the scopes: a custom role, or one limited to some users or groups, can’t read groups and applications.
Before you go on, Okta shows0 of 4
4

Connect it

In EntiPath

  1. Back on the page from part 1, fill in:
    Okta domain
    Your org’s Okta address, such as acme.okta.com, without -admin
    Client ID
    The Client ID you copied in part 2
    Display name
    A name for this org in EntiPath, such as Okta production
  2. Click Verify and connect.EntiPath checks it can read users, groups, group rules and applications, and whether it can read admin roles. Then it saves the connection, starts the first sync and opens the integration.
The Connect Okta page in EntiPath, with the Okta domain, Client ID and Display name fields and the Verify and connect button
Note. The domain must end in okta.com, oktapreview.com, okta-emea.com, okta-gov.com or okta-mil.com. A custom domain won’t work, because Okta’s API is only served on these.
Using an API token instead?

An API token is quicker, but it carries every permission of the admin who creates it.

  1. In Okta, sign in as a service account that has only the Read-only Administrator role.
  2. Go to Security › API › Tokens and create a token.
  3. In EntiPath, on the Connect Okta page, choose API token.
  4. Fill in the Okta domain, a Display name and the API token, then click Verify and connect.

After you connect

Production or sandbox

The first org you connect is production; the next is a sandbox, for trying plans before production. A paid plan includes one of each, and a trial connects one org in all. Change it on the integration’s Settings tab, under Environment.

Test and sync

Test connection and Sync now are at the top of the integration’s page. Syncs also run on their own.

Replace the credentials

If a token was revoked or a key removed, replace it on the Settings tab: Replace the API token, or Replace the key for a service app. EntiPath checks the new one with Okta first. People, groups and plans stay as they are.

Disconnect

Disconnect, on the Settings tab, deletes the stored credentials, everything read through this connection, and its change plans and saved checks. The audit log keeps who drafted, approved and applied each plan. Nothing changes in Okta, so remove the app there too.

Troubleshooting

Find the message EntiPath showed. Each one says why it happens and how to fix it.

“Okta did not accept EntiPath’s key for client …”

Okta refused the app’s sign-in with the key.

To fix it
  1. In Okta, open the EntiPath app’s General tab.
  2. Check Client authentication is saved as Public key / Private key.
  3. Check a key with the KID EntiPath shows is listed and Active. If you generated a new key in EntiPath, add that one too.
  4. Click Verify and connect again.
“… the token Okta issued lacks …” or “… has not been granted the required scopes …”

The app is missing at least one scope. The message lists every scope EntiPath asks for, including ones already granted.

To fix it
  1. In Okta, open the EntiPath app’s Okta API Scopes tab.
  2. Check each scope in part 3 says Granted, and grant any that don’t.
  3. Connect again.
“Okta denied reading … even though the token has every needed scope”

The scopes are there, so the admin role is too narrow. A custom role, or one limited to users or certain groups, isn’t enough.

To fix it
  1. In Okta, open the EntiPath app’s Admin roles tab.
  2. Assign Read-only Administrator.
“Okta denied reading … Check that the token or app has …”

With an API token, Okta uses the permissions of the admin who created it.

To fix it
  1. Give that admin the Read-only Administrator role, or create the token as a service account that has it.
“Okta rejected the credentials” or “Okta token request failed”

Okta didn’t accept what EntiPath signed in with.

To fix it
  1. With an API token: it was revoked, expired, or pasted incompletely. Create a new one.
  2. With a service app: check the Client ID is the app’s own (it starts with 0oa) and the app is active.
  3. Already connected? Replace it on the integration’s Settings tab. People, groups and plans stay as they are.
“Enter your Okta org domain … (not a custom domain)”

Okta’s API is only served on your org’s Okta address, not a custom domain like login.acme.com.

To fix it
  1. Use the address in the Okta Admin Console’s address bar, such as acme.okta.com, without -admin.
“Could not reach …”

EntiPath couldn’t reach that domain.

To fix it
  1. Check it’s your Okta org’s address, such as acme.okta.com, without -admin.
“clientId: String must contain at least 10 character(s)”

The Client ID is too short.

To fix it
  1. Copy all of it from the app’s General tab in Okta. It starts with 0oa.
“The setup key has expired”

The key EntiPath generated waits 24 hours.

To fix it
  1. Click Generate a new key.
  2. Add the new public key in Okta, as in part 2.
  3. Connect again.
“During the trial, a workspace connects one Okta org”

A trial workspace connects one Okta org, production or a sandbox.

To fix it
  1. Disconnect it first, or connect a second org on a paid plan.
“This workspace can connect … production org and … sandbox”

The workspace already has as many production orgs and sandboxes as its plan includes.

To fix it
  1. Disconnect one first, or contact EntiPath to add more.
A sync fails with “Okta denied access (…)”

The connection worked before, so something changed in Okta: a scope was revoked, or the app lost its Read-only Administrator role.

To fix it
  1. Check the scopes and role in part 3.
  2. Click Test connection.
“Okta rate limit persisted after retries”

Okta kept asking EntiPath to slow down, and the sync stopped. Okta’s limits are shared with everything else calling your org’s API, and the next sync tries again.

Still stuck? Email support@entipath.com with your workspace address and the message EntiPath showed.