Least-privilege Okta API token
Euno authenticates to Okta with a classic API token (SSWS). Only an Okta admin can create that token. The token has no scopes of its own: it always matches the current privileges of the account that created it.
Use a dedicated service account for the token. If that account is deactivated, Okta rejects the token. If you change the account's admin role, the token's access changes to match.
Euno only reads:
Users (
GET /api/v1/usersandGET /api/v1/users/me)Groups (
GET /api/v1/groups)Direct group members (
GET /api/v1/groups/{id}/users)
Option 1: Read-only Administrator (simplest)
A dedicated service account with Okta's built-in Read-only Administrator role can create a token and list users, groups, and group members. It cannot change users or groups. It can still view more of the Admin Console than Euno uses.
Create a dedicated Okta user that will not be deactivated (for example,
euno-okta@yourcompany.com).In the Admin Console, go to Security → Administrators and assign Read-only Administrator.
Sign in as that user and create the token.
Super Administrator and Organization Administrator also work, but they grant more privilege than Euno needs.
Option 2: Custom admin role (tightest)
If your Okta org supports custom admin roles, you can limit the service account to view-only directory access.
Create the dedicated service account first (same as Option 1, step 1). You must be signed in as a Super Administrator for the rest. Custom roles cannot be assigned without a resource set: create the role, then a resource set, then bind both to the service account.
Stage 1: Create the custom role
In the Admin Console, go to Security → Administrators.
Open the Roles tab and click Create new role.
Name the role (for example,
Euno Okta read).Grant only these permissions:
Under user permissions: View users and their details
Under group permissions: View groups (this includes viewing users assigned to each group)
Click Save role.
Stage 2: Create a resource set
A resource set is the scope the custom role can see. Euno observes every user and group the token can list, so include all users and all groups unless you intentionally want a subset.
Still on Security → Administrators, open the Resources tab.
Click Create new resource set.
Name it (for example,
Euno directory).Click Add resource. From Find a resource type, choose Users, then select All users. Click Save selection.
Click Add another resource type. Choose Groups, then select All groups. Click Save selection.
Click Create.
Stage 3: Assign the role and resource set to the service account
On the Resources tab, find the resource set you just created.
Click Edit → View or edit assignments.
In Complete the assignment:
Choose the dedicated service account as the admin (you can pick a user or a group).
Choose the custom role from Stage 1.
Click Save changes.
The service account now has view-only access to the users and groups in that resource set. It still cannot mint an API token; continue with the next stage.
Stage 4: Create the token, then drop extra privilege
A custom role with only the view permissions above often cannot create an API token. Okta requires Manage users (or a built-in admin role) to mint the token. After the token exists, you can reduce the account to the view-only role; the token then inherits the reduced access.
Temporarily assign Super Administrator, Organization Administrator, or Manage users to the service account.
Sign in as the service account and create the token.
Sign out. As a Super Administrator, remove the temporary role and leave only the custom view-only role.
For Okta's own steps, see Create an API token for a restricted administrator role.
After you create the token
Return to Configure the Okta source in Euno and paste the token into API Token.
Last updated