Apply plans through the Okta API

A second Okta app that can edit group rules and profile values, used only for approved plans.

On this page

Before you begin

  • An Okta super administrator account.
  • An EntiPath owner or admin account.
  • Okta connected to EntiPath.
  • The Team or Enterprise plan, which include applying plans.

It takes about 10 minutes.

Approved plans can be applied straight to Okta by a second Okta app that can edit group rules and, for plans on one person, set profile values. EntiPath’s regular connection stays read-only; this app is used only to apply a plan someone approved, one change at a time, and EntiPath checks each rule first.

Note. Any workspace can set up the write app, but applying straight to Okta comes with the Team and Enterprise plans. During the trial, rule plans go out as Terraform pull requests instead.
1

Copy the key from EntiPath

In EntiPath

  1. Open Integrations, then your Okta org.
  2. Open the Applying plans tab.
  3. Under Directly through the Okta API, click Set up the write app.
  4. Copy the Public key (JWK), and note its Key ID (KID).
Applying plans in EntiPath: the write app’s public key, Key ID and the Write app client ID field
Note. An owner or admin can. The private key never leaves EntiPath. The key waits 24 hours for the person who generated it; Generate a new key replaces it, and a key already added in Okta then stops matching.
2

Create a second 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 changes, and save.
  3. On its 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 Client authentication to Public key / Private key, then click Save.
  8. Copy the Client ID.
Important. Use a new app. The existing EntiPath app stays read-only, and EntiPath refuses its client ID here.
3

Grant scopes and a role that can edit rules

In the Okta Admin Console, on the new app

  1. Open the Okta API Scopes tab.
  2. Click Grant next to each of these:
    okta.groups.read
    Required
    okta.groups.manage
    Required
    okta.users.manage
    Only for plans that set a profile value on one person, from a dated HR move or to fix a difference from HR
  3. Open the Admin roles tab.
  4. Assign a role that can manage group rules, such as Organization Administrator.
Note. EntiPath never closes accounts or changes group members. Okta checks the role as well as the scopes: a role limited to some groups must cover every group the edited rules assign, and for profile values the role must also let the app view and edit users.
Before you go on, the new app shows0 of 4
4

Connect it in EntiPath

In EntiPath, on the Applying plans tab

  1. Paste the Client ID into Write app client ID.
  2. Click Check and connect.EntiPath signs in as the write app and reads the group rules, which already needs its admin role.
Note. Okta checks that the role can edit rules when the first plan is applied. If Okta refuses an edit, that rule is left as it was and the plan stops; rules it already edited stay edited, and the plan says which.

Once connected, the card has Check again and Turn off. Turning off deletes the key, so deactivate the app in Okta too.

How changes are applied

In EntiPath, on the integration’s Settings tab

Under How changes are applied:

Group rules
Applies rule plans through the Okta API, or, once a Terraform repository is connected, as pull requests there.
Rule changes through the Okta API
With a repository connected, lets a rule plan also be applied straight to Okta. It’s off by default so Okta and the repository can’t drift apart through EntiPath.
Okta permission for people
Click Check to confirm the write app can set profile values. It works once the write app is connected.
Dated plans apply at
The time and time zone a plan dated by HR applies on its day, once approved: 07:00 UTC unless you change it. Plans already dated move to the new time.
How changes are applied on the Okta integration’s Settings tab in EntiPath

Troubleshooting

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

“Use a second API Services app for writing”

That client ID is EntiPath’s regular, read-only app.

To fix it
  1. Create a second API Services app for writing, as in part 2.
  2. Use its client ID.
“Okta refused to show the write app the group rules”

The write app has no admin role that can see group rules.

To fix it
  1. On the write app’s Admin roles tab, assign one that can manage group rules, such as Organization Administrator.
  2. Check again.
“Okta has not granted okta.groups.manage to the write app”

The write app is missing a scope.

To fix it
  1. On its Okta API Scopes tab, grant okta.groups.read and okta.groups.manage.
  2. Check again.
“Okta did not accept EntiPath’s key for client …”

Okta refused the write app’s sign-in.

To fix it
  1. Check its Client authentication is saved as Public key / Private key.
  2. Check the key with EntiPath’s KID is listed and Active. If you generated a new key in EntiPath, add that one too.
“The write app could not read group rules: …”

The write app couldn’t sign in to Okta.

To fix it
  1. Check the client ID is the write app’s own, and the app is active.
  2. Check Okta’s domain is reachable.
  3. Check again.
“The setup key has expired”

The key waits 24 hours.

To fix it
  1. Click Generate a new key.
  2. Add it to the write app in Okta, as in part 2.
  3. Connect again.
“Okta refused (403): EntiPath’s write app isn’t allowed to edit …”

Okta refused to edit that rule.

To fix it
  1. Give the write app okta.groups.manage and an admin role that can manage group rules, including every group the rule assigns.
  2. On the plan, click Try again.
“Rule … was changed in Okta after the plan was checked”

Someone changed the rule in Okta after the plan was checked, so EntiPath left it alone rather than overwrite their change.

To fix it
  1. Check the plan again against Okta.
  2. Apply it.
“Okta didn’t grant okta.users.manage to the write app”

The write app can’t set profile values without its scope.

To fix it
  1. On the write app’s Okta API Scopes tab, grant okta.users.manage.
  2. Click Check again next to Okta permission for people.
“… the write app’s admin role doesn’t let it read users”

The write app’s admin role doesn’t cover people.

To fix it
  1. Give it a role that can view and edit users.
  2. Check again.
Plans open pull requests instead of applying in Okta

A Terraform repository is connected, so rule changes go through pull requests.

To fix it
  1. To apply them in Okta instead, turn on Rule changes through the Okta API on the integration’s Settings tab, under How changes are applied.

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