Connect Okta
Okta is a workforce identity platform: it holds your people's accounts, their groups and the applications they sign in to. StackJack connects an AI assistant to the Okta API of one Okta organization,…
Written By Christopher Scaminaci
Last updated About 2 hours ago
Okta is a workforce identity platform: it holds your people's accounts, their groups and the applications they sign in to. StackJack connects an AI assistant to the Okta API of one Okta organization, for user administration.
Connecting Okta to StackJack gives your AI assistant a family of okta_ MCP tools. MCP (Model Context Protocol) tools are the standardized commands an AI
assistant can call through StackJack. With them, your AI can:
- Read users - list and search users, read one user, their groups, their application links, their devices, their factors and their admin roles
- Read groups and applications - list groups, their members, owners and rules, list applications and who is assigned to each one
- Read the System Log - search the events of your organization
- Onboard (on Pro plans) - create a user, activate them, add them to groups, assign them to applications and give them an admin role
- Offboard (on Pro plans) - suspend or deactivate a user, end their sessions and OAuth tokens, remove their groups and applications, and delete them
- Help a user (on Pro plans) - unlock a user, expire or reset a password, reset or remove a factor
- Run groups (on Pro plans) - create, change and delete groups, add and remove members and owners, and run group rules
How StackJack authenticates to Okta
Okta takes an API token and the address of your Okta organization. StackJack sends the token in the Authorization header (the SSWS scheme) to your Okta domain
only. There is no sign-in exchange: the token is used as it is.
The token acts with the permissions of the administrator who creates it. For user administration, create it as an administrator whose role can manage users, groups and application assignments. A super administrator can do every call.
Getting the token
- Sign in to the Okta Admin Console as the administrator the token should act as.
- Open Security, then API, then the Tokens tab.
- Click Create token, give it a name, and copy the token value. Okta shows it only once. For where calls may come from, choose Any IP: StackJack calls Okta from its own addresses, not from your network. To allow only StackJack's addresses instead, open a StackJack support ticket to get them.
Okta expires a token that is not used for 30 days, and revokes it when the administrator who made it is deactivated. If the connection stops working, create a new token and save it on the connection.
One connection is one Okta organization
A connection reads and changes one Okta organization. If you work with several organizations, add one named connection for each.
Connect it in StackJack
- Open Connectors, then Okta.
- Enter your Okta domain, the address your people sign in at, for example
https://acme.okta.com. A preview organization ends inoktapreview.com. Leave out-admin: the Admin Console address is refused, because the API answers on the organization's own domain. - Paste the API token.
- Click Save. StackJack stores the connection and then checks it: it reads the user the token acts as, which changes nothing.
To check a saved connection again later, use Test on its row. The test uses the token that is saved, so save a new token before you test it.
Enter the domain and the token again whenever you save this form. To rename a connection, use Rename in the connections list: a rename needs no token.
What is worth knowing before you start
Long lists come in pages
A list answers one page of results and a next value. To read the next page, ask for the same list again with after set to that value. When next is empty, the
list is complete. The System Log can keep offering a next page while you search without an end time, so stop when a page comes back empty.
Changes that are marked destructive
Every change is Pro and is marked destructive, because each one changes who can sign in to what:
- User lifecycle - create, activate, reactivate, suspend, unsuspend, unlock, deactivate and delete a user. Activating or reactivating a user emails them unless
sendEmailis false. Deleting a user is permanent and cannot be recovered. The first delete of a user who is not yet deactivated deactivates them; a second delete removes them. - Passwords and factors - expire a password, set a temporary password, send or make a password reset link, reset every factor, and remove one factor.
- Sessions and grants - end a user's sessions, and revoke their OAuth tokens and grants.
- Groups - create, replace and delete a group, add and remove members and owners, and create, replace, activate, deactivate and delete group rules. A group rule adds people to groups by itself while it is active.
- Applications - assign and unassign users and groups, and change an application user.
- Admin roles - assign and unassign an admin role.
StackJack marks these tools as destructive. Whether your AI application asks for confirmation depends on its settings: some clients prompt before every tool call, some prompt only for tools the server marked destructive, some remember an earlier "always allow", and some never prompt. Review those settings, and leave out the tools a connection does not need. How tools work has the details.
StackJack never sends a change twice. When Okta does not confirm a change, the tool says so: read the user or the group before you try again, so that a second user is not created and a second activation email is not sent.
Secrets in answers
An activation link, an activation token, a password reset link and a temporary password are secrets. A tool that answers one returns it only in its answer, never behind a download link. Okta never returns a password value or a recovery answer in a user record; if one ever appears, StackJack removes it unless you ask for secrets on that call.
Rate limit
Okta limits each organization's calls per endpoint and per minute. StackJack paces one connection at about one call a second and waits when Okta answers that there are too many requests.
When Okta refuses a call
- The token was refused (401): the token is missing, not valid, revoked or expired. Create a new token and save it on the connection.
- Something else answered: a proxy or a firewall replied instead of Okta. The token was not judged. Check the Okta domain and try again later.
- Not allowed (403): the administrator who made the token does not have a role that allows the call.
- Not found (404): check the user, group, application or rule id. Ask your AI to list them first.
- A refused request (400): a value was missing or not accepted. Okta's answer names the problem.
- Too many requests (429): wait before you try again.
- An outage (5xx): wait and try again.
Tool reference
See the generated Okta tool reference for the current inventory, plan assignment, input schemas and destructive-action labels.
Okta tools
okta_ · 74 tools · Free 33 · Pro 41
Users
User lifecycle
Passwords
Factors
Sessions and grants
User resources
Groups
Group rules
Applications
Admin roles
System Log
Was this helpful?
More in Connector guides
Connect 3CXConnect AbleSignConnect Acronis Cyber Protect CloudConnect Action1Still need help? Ask the team