How to connect Okta to Toolspoke
Give your Toolspoke agents read-only access to Okta users, groups, applications, MFA factors and the System Log. A dedicated Read-only Admin, an API token created as that admin, and an agent that reviews access for you.
Checked against Okta's documentation on 2026-11-25.
Toolspoke's Okta toolkit calls Okta's own REST API at https://<your org>/api/v1 with an API token you create. Once it's installed, any agent in the project can use it. This guide sets that up with a dedicated read-only admin, then builds an agent that reviews sign-ins and MFA for your security team.
The toolkit is read-only. It can tell an agent who exists, what they can reach, who is in which group, who has a second factor and what the System Log recorded. It can't deactivate anyone, reset a password, clear a session, unenroll a factor or change a group. Those actions aren't in the toolkit at all.
Setup takes about ten minutes if you're an Okta super admin.
What an agent can do once it's connected
The toolkit has 12 named actions, and every one of them only reads:
- People:
list_userslists accounts with an exact filter on status, login or email.search_userstakes a broader expression that reaches custom profile attributes such as department.get_userfetches one person by id, login or email address. - Groups:
list_groups,get_groupandlist_group_members. Groups are how most application access is handed out, so this is the map of who can reach what. - Applications:
list_applicationsis the inventory of your SAML, OIDC and other integrations, andget_applicationreads how one is configured. Client secrets are never returned. - One person's access:
list_user_app_assignmentsreturns the apps a person can actually reach, including the ones inherited from groups. It's the call for a leaver review. - MFA:
list_user_factorsreturns which factors a person has enrolled, their type and status. It leaves out the enrolled phone number or email address. - What happened:
list_system_log_eventsreads the System Log: sign-ins, failures and admin changes. - The org itself:
get_org_settingsreturns the company name, subdomain and status. Toolspoke uses it to test the connection.
What you need
- An Okta org and its domain, for example
acme.okta.com,acme.oktapreview.comor a custom domain. - A super admin, to create the dedicated admin below. In Okta, only super admins can add administrators.
- A Toolspoke workspace, and a project to install the toolkit in.
Step 1: Create a read-only admin for Toolspoke
An Okta API token has no scopes of its own. Okta's docs say tokens "inherit the privilege level of the admin account" that creates them. If the admin's role changes later, the token's access changes with it. So if you create the token from your own super admin account, the token your agents use can do everything you can.
Create a separate account instead and give it the narrowest admin role that still reads everything this toolkit needs:
- In the Admin Console, create a user for the integration, for example
[email protected]. Okta recommends a service account here because a token belongs to the person who created it. - Open Security → Administrators and choose Add administrator.
- Select the new user, pick the Read-only Admin role and save.
- Security
- Administrators
- Add Administrator
Okta's role description says read-only admins can view users, groups, apps, reports, Okta settings and the System Log, and can't edit data. That covers all 12 actions. The only settings they can change are their own notifications and API token settings.
Step 2: Create an API token as that admin
Sign in to the Admin Console as the read-only admin from step 1, not as yourself. Then:
- Open Security → API and select the Tokens tab.
- Choose Create token and give it a name, for example
toolspoke. - Choose where API calls may come from. If you limit the token to a network zone, Okta only accepts calls from inside it, so Toolspoke's requests would also have to come from that zone.
- Choose Create token and copy the value. Okta shows it once and stores only a hash.
- Security
- API
- Tokens
- Create token
Okta tokens are valid for 30 days and renew each time they're used. A token left idle for 30 days expires, and Okta doesn't let you change that period. Tokens created by a user who is later deactivated stop working too, so don't offboard the integration account by accident.
By default, each token can use 50 percent of each API's rate limit. You can change that under the token's rate-limit settings.
Step 3: Install the Okta toolkit in Toolspoke
- In Toolspoke, open the project your agents work in. Find Okta in the marketplace and add it.
- Enter the Okta org domain: just the hostname, with no
https://, no trailing slash and no/api/v1. For exampleacme.okta.com. - Paste the API token from step 2.
get_org_settings answered. The credential works.
Toolspoke checks the connection by reading your org settings with get_org_settings. If that fails, see Troubleshooting.
The token is encrypted at rest and attached to each request by the gateway. The agent never sees it, and it never appears in the arguments an agent sends or in the audit log.
Step 4: Decide what agents may see
There's nothing to switch off for safety, because nothing here can change your org. What's left to decide is who in your company should be able to read what.
Most of these actions return named employees: their email addresses, their apps, their factors and where they signed in from. In the project's toolkit settings, every action can be switched on or off for everyone in the project. An action that's switched off can't be called, whatever the prompt says. If a project only needs the shape of your org, leave list_groups, get_group, list_applications, get_application and get_org_settings on and switch the person-level reads off.
Okta actions in your project
Agents can call 12 of 12, and none of them change anything.
list_usersList the people in the org, newest first, with each one's id, status, profile and sign-in timestamps.get_userFetch one person by id, login, or login shortname, with their full profile, status and sign-in timestamps.search_usersSearch people with an expression that reaches custom profile attributes and supports sorting, which the plain `filter` on list_users does not.list_groupsList the org's groups with each one's id, name, description, type and member count.get_groupFetch one group by id, with its name, description and type.list_group_membersList the people in one group, with each one's id, status and profile.list_applicationsList the applications configured in the org, with each one's id, label, sign-on mode and status.get_applicationFetch one application by id, with its sign-on mode, settings and lifecycle state.list_user_app_assignmentsList the applications one person can actually reach — the tiles on their Okta dashboard — with the application id, label and sign-on URL of each.list_system_log_eventsRead the org's System Log — who signed in from where, what failed, which admin changed what, and when.list_user_factorsList one person's enrolled authentication factors, with the type, provider and status of each.get_org_settingsRead the org's own settings — company name, subdomain, status, support contact and creation date.
Every call is recorded with the agent and person behind it, the request, the response, the status and the duration. Security reviews often ask for exactly that trail.
Step 5: Build an agent that uses it
In Toolspoke, create an agent and describe its job in one sentence. The builder proposes the instructions, the toolkits it needs, a schedule and where it should answer. You add or skip each one, then create the agent. Every piece stays editable afterwards.
The same agent answers when someone asks it in Slack or emails it, and it replies in the thread it was asked in. It can only read, so a leaver review or a sign-in question never changes anything in Okta.
Try it
Ask the agent the way you'd ask your identity admin:
- Who is [email protected] in Okta? Is her account active, and when did she last sign in?
- List everyone in the Engineering department who doesn't have a second factor enrolled.
- Which applications does the Contractors group grant? Who's in that group?
- Show failed sign-ins for [email protected] over the last 48 hours, with where they came from.
- Which admin changed the Salesforce app's settings last week?
For the System Log, the agent passes a start time with list_system_log_events. Without one, Okta returns the last seven days. The Okta toolkit page lists every action.
Troubleshooting
401 on every call.
The token is wrong, expired or was created by a user who has since been deactivated. Make sure you pasted the token itself and not its name. If it went 30 days without a call, create a new one (step 2).
403, or some actions work and others don't.
The token can only do what its creator's role allows. Check that the account from step 1 still holds the Read-only Admin role under Security → Administrators.
The connection check fails before any request is made.
The domain field takes a hostname only. Remove https://, any trailing slash and /api/v1.
A person created a minute ago doesn't show up in a search.
Okta's search results are eventually consistent. Ask for them by login or email instead, which uses get_user.
429 Too Many Requests.
The token hit its share of the rate limit. Ask narrower questions or raise the token's rate-limit share in Okta.
Calls are refused from some places but work from others.
The token was limited to a network zone in step 2. Edit the token's network setting under Security → API → Tokens.
Questions
Can an agent lock someone out or reset their MFA?
No. The toolkit only has the 12 read actions above. Nothing in it changes a user, a group, an app or a factor, and nothing else in Okta's API is reachable through it.
Does the agent see the token?
No. The gateway attaches it to the request. It's never shown to the agent, and values whose key names a secret are masked in the audit log.
Should I use my own admin account for the token?
No. The token would carry your full admin rights, and Okta would revoke it if your account were ever deactivated. Use the dedicated read-only admin.