Okta User API

The User API from Okta — 36 operation(s) for user.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Identity & Access Management BC-620.20

Operations 52

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/users List or search users in the org · Okta List Users #
Ask an LLM
“How do I list all the users in my Okta org?”
“Can I search users by profile attribute, like everyone in one department?”
Tell an agent
List users matching the search expression {search}.
Find users whose name or email starts with {q}.
POST /api/v1/users Create a new user · Okta Create User #
Ask an LLM
“How do I add a new person to my directory?”
“Can I create a user without activating them right away?”
Tell an agent
Create a user with profile {profile} and activate them.
Create user {profile} and add them to groups {groupIds}.
PUT /api/v1/users/{associatedUserId}/linkedObjects/{primaryRelationshipName}/{primaryUserId} Link a user to a primary user · Set linked object for user #
Ask an LLM
“Can I record that one user is another user's manager through a linked-object relationship?”
“What does setting a linked object between two users do?”
Tell an agent
Set {primaryUserId} as the {primaryRelationshipName} of user {associatedUserId}.
Link associated user {associatedUserId} to primary user {primaryUserId} via relationship {primaryRelationshipName}.
GET /api/v1/users/{userId} Get a user's details · Okta Get User #
Ask an LLM
“How do I look up one user's profile and status?”
“What details can I see for a single user by ID or login?”
Tell an agent
Show me user {userId}.
Get the profile and status of user {userId}.
PUT /api/v1/users/{userId} Replace a user's profile · Okta Update User #
Ask an LLM
“How do I overwrite a user's whole profile in one call?”
“Does a full user update clear profile fields I leave out?”
Tell an agent
Replace the full profile of user {userId} with {profile}.
Do a full PUT update of user {userId}'s credentials to {credentials}.
POST /api/v1/users/{userId} Partially update a user's profile · Partial update user #
Ask an LLM
“Can I change just one field on a user without sending the whole profile?”
“Which update keeps the profile attributes I don't include?”
Tell an agent
Patch only these profile fields on user {userId}: {profile}.
Partially update user {userId}, leaving other attributes untouched.
DELETE /api/v1/users/{userId} Delete or deactivate a user · Okta Delete User #
Ask an LLM
“How do I permanently delete a user from Okta?”
“Why does deleting an active user only deactivate them the first time?”
Tell an agent destructive · confirm first
Delete user {userId}.
Delete user {userId} and set send-email to {sendEmail}.
GET /api/v1/users/{userId}/clients List OAuth clients a user has used · List user clients #
Ask an LLM
“Which OAuth client apps hold tokens or grants for a user?”
“Can I see every client a user has authorized?”
Tell an agent
List the OAuth clients for user {userId}.
Show which client apps user {userId} has granted access to.
GET /api/v1/users/{userId}/clients/{clientId}/grants List a user's grants for one client · List grants for user and client #
Ask an LLM
“What scopes has a user granted to one specific OAuth client?”
“Can I page through consent grants for a user and a single client?”
Tell an agent
List grants user {userId} gave to client {clientId}.
Show the first {limit} grants for user {userId} on client {clientId}.
DELETE /api/v1/users/{userId}/clients/{clientId}/grants Revoke a user's grants for one client · Revoke grants for user and client #
Ask an LLM
“How do I withdraw all the consent a user gave to one client app?”
“Can I revoke grants for a single client without touching the user's other apps?”
Tell an agent destructive · confirm first
Revoke all grants user {userId} gave to client {clientId}.
Remove client {clientId}'s consent grants for user {userId}.
GET /api/v1/users/{userId}/clients/{clientId}/tokens List a user's refresh tokens for a client · List refresh tokens for user and client #
Ask an LLM
“Which refresh tokens does a client hold for a user?”
“Can I list refresh tokens issued to one app for one user?”
Tell an agent
List refresh tokens for user {userId} on client {clientId}.
Show up to {limit} refresh tokens client {clientId} holds for user {userId}.
DELETE /api/v1/users/{userId}/clients/{clientId}/tokens Revoke all refresh tokens for a user and client · Revoke tokens for user and client #
Ask an LLM
“How do I sign a user out of one app by killing all its refresh tokens?”
“Can I revoke every refresh token a client holds for a user at once?”
Tell an agent destructive · confirm first
Revoke all refresh tokens for user {userId} on client {clientId}.
Invalidate every token client {clientId} has for user {userId}.
GET /api/v1/users/{userId}/clients/{clientId}/tokens/{tokenId} Get one refresh token for a user and client · Get refresh token for user and client #
Ask an LLM
“How can I inspect a single refresh token a user holds for a client?”
“What details come back for one refresh token by ID?”
Tell an agent
Get refresh token {tokenId} for user {userId} on client {clientId}.
Show token {tokenId} that client {clientId} issued to user {userId}.
DELETE /api/v1/users/{userId}/clients/{clientId}/tokens/{tokenId} Revoke one refresh token · Revoke token for user and client #
Ask an LLM
“Can I revoke just one refresh token and leave a user's other tokens alone?”
“What happens when a single refresh token is revoked?”
Tell an agent destructive · confirm first
Revoke refresh token {tokenId} for user {userId} on client {clientId}.
Kill only token {tokenId} belonging to user {userId} and client {clientId}.
POST /api/v1/users/{userId}/credentials/change_password Change a user's password · Okta Change Password #
Ask an LLM
“How do I change a user's password when I know their current one?”
“Does changing a password require the old password?”
Tell an agent
Change user {userId}'s password from {oldPassword} to {newPassword}.
Set a new password {newPassword} for user {userId} after validating the current one.
POST /api/v1/users/{userId}/credentials/change_recovery_question Change a user's recovery question · Okta Change Recovery Question #
Ask an LLM
“How do I update the security recovery question for a user?”
“Do I need the user's password to change their recovery question?”
Tell an agent
Change user {userId}'s recovery question to {recovery_question}.
Using password {password}, update the recovery question for user {userId}.
POST /api/v1/users/{userId}/credentials/forgot_password Start a forgot-password flow for a user · Okta Forgot Password #
Ask an LLM
“What happens when I trigger forgot password for a user?”
“Can I kick off a self-service password recovery for someone?”
Tell an agent
Trigger the forgot-password flow for user {userId}.
Start forgot password recovery for user {userId}.
GET /api/v1/users/{userId}/grants List all consent grants for a user · List user grants #
Ask an LLM
“Which scopes has a user consented to across all apps?”
“Can I filter a user's grants by a single scope?”
Tell an agent
List all grants for user {userId}.
Show user {userId}'s grants for scope {scopeId}.
DELETE /api/v1/users/{userId}/grants Revoke all of a user's grants · Revoke user grants #
Ask an LLM
“How do I wipe every consent grant a user has given across all clients?”
“Is there a way to revoke all grants for a user in one call?”
Tell an agent destructive · confirm first
Revoke every grant user {userId} has given.
Clear all consent across all apps for user {userId}.
GET /api/v1/users/{userId}/grants/{grantId} Get one of a user's grants · Get user grant #
Ask an LLM
“How can I view one specific grant a user gave?”
“What scope and client does a given grant ID cover?”
Tell an agent
Get grant {grantId} for user {userId}.
Show the details of user {userId}'s grant {grantId}.
DELETE /api/v1/users/{userId}/grants/{grantId} Revoke one of a user's grants · Revoke user grant #
Ask an LLM
“Can I revoke a single consent grant by its ID?”
“What's the way to remove just one grant from a user?”
Tell an agent destructive · confirm first
Revoke grant {grantId} for user {userId}.
Remove only grant {grantId} from user {userId}.
GET /api/v1/users/{userId}/groups List the groups a user belongs to · Okta Get Member Groups #
Ask an LLM
“Which groups is a user a member of?”
“How can I check a user's group memberships?”
Tell an agent
List the groups user {userId} belongs to.
Show group memberships for user {userId}.
GET /api/v1/users/{userId}/idps List identity providers linked to a user · Okta Listing IdPs associated with a user #
Ask an LLM
“Which external identity providers is a user linked to?”
“Can I see the IdPs associated with one user?”
Tell an agent
List the identity providers linked to user {userId}.
Show which IdPs user {userId} signs in through.
POST /api/v1/users/{userId}/lifecycle/activate Activate a staged user · Okta Activate User #
Ask an LLM
“How do I activate a user I created in staged status?”
“Can I activate a user without emailing them the activation link?”
Tell an agent
Activate user {userId} and email them: {sendEmail}.
Activate user {userId} without sending an email, sendEmail={sendEmail}.
POST /api/v1/users/{userId}/lifecycle/deactivate Deactivate a user · Okta Deactivate User #
Ask an LLM
“What happens to a user's access when they are deactivated?”
“Can I deactivate someone and notify the admin by email?”
Tell an agent destructive · confirm first
Deactivate user {userId}.
Deactivate user {userId} with sendEmail set to {sendEmail}.
POST /api/v1/users/{userId}/lifecycle/expire_password?tempPassword=false Expire a user's password · Okta Expire Password #
Ask an LLM
“How do I force a user to change their password at next sign-in?”
“Can I expire a password without generating a temporary one?”
Tell an agent
Expire user {userId}'s password so they must change it next login.
Expire the password for {userId} without a temp password.
POST /api/v1/users/{userId}/lifecycle/expire_password?tempPassword=true Expire a password and issue a temporary one · Okta Expire Password #
Ask an LLM
“Can I expire a user's password and get a temporary password back?”
“Which call returns a temp password when expiring someone's password?”
Tell an agent
Expire user {userId}'s password and give me a temporary password.
Generate a temporary password for {userId} by expiring the current one.
POST /api/v1/users/{userId}/lifecycle/reactivate Reactivate a pending user · Okta Reactivate User #
Ask an LLM
“How do I resend activation for a user stuck in provisioned status?”
“Can I reactivate a user who never finished activating?”
Tell an agent
Reactivate user {userId}.
Reactivate provisioned user {userId} and set sendEmail to {sendEmail}.
POST /api/v1/users/{userId}/lifecycle/reset_factors Reset all of a user's MFA factors · Okta Reset Factors #
Ask an LLM
“How do I clear every MFA factor a user has enrolled?”
“Can a user re-enroll MFA after I reset their factors?”
Tell an agent destructive · confirm first
Reset all MFA factors for user {userId}.
Wipe every enrolled factor on {userId} so they re-enroll.
POST /api/v1/users/{userId}/lifecycle/reset_password Generate a password reset link · Okta Reset Password #
Ask an LLM
“How do I send a user a one-time password reset link?”
“Can I get the reset link back instead of emailing it?”
Tell an agent
Reset user {userId}'s password and email the link: {sendEmail}.
Create a password reset link for user {userId} with sendEmail={sendEmail}.
POST /api/v1/users/{userId}/lifecycle/suspend Suspend a user · Okta Suspend User #
Ask an LLM
“Can I temporarily block a user from signing in without deactivating them?”
“What does suspending a user do?”
Tell an agent
Suspend user {userId}.
Put user {userId} into suspended status.
POST /api/v1/users/{userId}/lifecycle/unlock Unlock a locked-out user · Okta Unlock User #
Ask an LLM
“How do I unlock a user who got locked out after failed sign-ins?”
“Can an admin unlock a user's account?”
Tell an agent
Unlock user {userId}.
Clear the lockout on user {userId} so they can sign in.
POST /api/v1/users/{userId}/lifecycle/unsuspend Unsuspend a user · Okta Unsuspend User #
Ask an LLM
“How do I restore a suspended user to active?”
“Can I lift a suspension on a user?”
Tell an agent
Unsuspend user {userId}.
Return suspended user {userId} to active status.
GET /api/v1/users/{userId}/linkedObjects/{relationshipName} Get a user's linked objects · Get linked objects for user #
Ask an LLM
“Who is linked to a user under a relationship like manager?”
“Can I list a user's linked-object relationships by name?”
Tell an agent
Get user {userId}'s linked objects for relationship {relationshipName}.
Show who is {relationshipName} for user {userId}.
DELETE /api/v1/users/{userId}/linkedObjects/{relationshipName} Remove a user's linked object · Remove linked object for user #
Ask an LLM
“How do I unlink a user from a linked-object relationship?”
“Can I remove a manager link from a user?”
Tell an agent destructive · confirm first
Remove the {relationshipName} link from user {userId}.
Delete user {userId}'s linked object for relationship {relationshipName}.
GET /api/v1/users/{userId}/roles List admin roles assigned to a user · List assigned roles for user #
Ask an LLM
“Which admin roles does a user have?”
“Is a user a super admin or another admin role?”
Tell an agent
List the admin roles assigned to user {userId}.
Show roles for {userId}.
POST /api/v1/users/{userId}/roles Assign an admin role to a user · Assign role to user #
Ask an LLM
“How do I make a user an admin?”
“Can I assign a role without sending admin notifications?”
Tell an agent
Assign role type {type} to user {userId}.
Give user {userId} the {type} role with notifications disabled={disableNotifications}.
GET /api/v1/users/{userId}/roles/{roleId} Get one role assigned to a user · Get user role #
Ask an LLM
“What does a specific role assignment on a user look like?”
“Can I fetch one admin role by ID for a user?”
Tell an agent
Get role {roleId} for user {userId}.
Show details of role assignment {roleId} on {userId}.
DELETE /api/v1/users/{userId}/roles/{roleId} Remove an admin role from a user · Remove role from user #
Ask an LLM
“How do I revoke admin rights from a user?”
“Can I unassign one role and keep their other roles?”
Tell an agent destructive · confirm first
Remove role {roleId} from user {userId}.
Unassign admin role {roleId} from {userId}.
GET /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps List app targets of a user's app admin role · List application targets for application administrator role for user #
Ask an LLM
“Which apps can an app admin manage?”
“Can I see the app targets scoped onto a user's application administrator role?”
Tell an agent
List app targets for role {roleId} of user {userId}.
Show which apps user {userId}'s app admin role {roleId} covers.
PUT /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps Let an app admin role manage all apps · Add all apps as target to role #
Ask an LLM
“Can I make an app admin role cover every app in the org?”
“How do I remove app-level limits from an app admin role?”
Tell an agent
Target all apps for role {roleId} of user {userId}.
Let user {userId}'s role {roleId} administer every app.
PUT /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps/{appName} Add an app type target to a user's admin role · Add application target to admin role for user #
Ask an LLM
“How do I let an app admin manage all instances of one app type?”
“Can I scope an admin role to one catalog app by name?”
Tell an agent
Add app {appName} as a target of role {roleId} for user {userId}.
Let role {roleId} on {userId} manage every {appName} app instance.
DELETE /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps/{appName} Remove an app type target from an admin role · Remove application target from application administrator role for user #
Ask an LLM
“How do I stop an app admin from managing a whole app type?”
“Can I drop one catalog app from an admin role's targets?”
Tell an agent destructive · confirm first
Remove app {appName} from role {roleId} targets for user {userId}.
Stop role {roleId} of {userId} from covering all {appName} instances.
PUT /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps/{appName}/{applicationId} Add one app instance target to an admin role · Okta Add App Instance Target to App Administrator Role given to a User #
Ask an LLM
“Can I limit an app admin to a single app instance?”
“How do I scope an admin role to one specific application ID?”
Tell an agent
Add app instance {applicationId} of {appName} to role {roleId} for user {userId}.
Scope {userId}'s role {roleId} to only the {appName} instance {applicationId}.
DELETE /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps/{appName}/{applicationId} Remove one app instance target from an admin role · Okta Remove App Instance Target to App Administrator Role given to a User #
Ask an LLM
“How do I take a single app instance out of an admin role's scope?”
“Can I remove one application ID target and keep the others?”
Tell an agent destructive · confirm first
Remove app instance {applicationId} of {appName} from role {roleId} for {userId}.
Drop instance {applicationId} ({appName}) from user {userId}'s role {roleId}.
GET /api/v1/users/{userId}/roles/{roleId}/targets/groups List group targets of a user's admin role · List group targets for role #
Ask an LLM
“Which groups can a group admin manage?”
“Can I list the groups a user's admin role is scoped to?”
Tell an agent
List group targets for role {roleId} of user {userId}.
Show which groups {userId}'s role {roleId} administers.
PUT /api/v1/users/{userId}/roles/{roleId}/targets/groups/{groupId} Add a group target to a user's admin role · Add group target to role #
Ask an LLM
“How do I let a group admin manage one more group?”
“Can I scope an admin role to a specific group?”
Tell an agent
Add group {groupId} as a target of role {roleId} for user {userId}.
Let {userId}'s role {roleId} manage group {groupId}.
DELETE /api/v1/users/{userId}/roles/{roleId}/targets/groups/{groupId} Remove a group target from a user's admin role · Remove group target from role #
Ask an LLM
“How do I stop a group admin from managing a particular group?”
“Can I remove one group from an admin role's scope?”
Tell an agent destructive · confirm first
Remove group {groupId} from role {roleId} targets for user {userId}.
Stop {userId}'s role {roleId} from covering group {groupId}.
DELETE /api/v1/users/{userId}/sessions Sign a user out of all sessions · Clear user sessions #
Ask an LLM
“How do I force a user to sign out everywhere?”
“Can I also revoke their OAuth tokens when clearing sessions?”
Tell an agent destructive · confirm first
Clear all sessions for user {userId}.
End {userId}'s sessions and revoke OAuth tokens too: {oauthTokens}.
GET /api/v1/users/{userId}/subscriptions List a user's notification subscriptions · Okta List subscriptions of a User #
Ask an LLM
“Which admin notifications is a user subscribed to?”
“Can I see all notification subscriptions for one user?”
Tell an agent
List notification subscriptions for user {userId}.
Show which notifications {userId} receives.
GET /api/v1/users/{userId}/subscriptions/{notificationType} Get a user's subscription for one notification type · Okta Get the subscription of a User with a specific notification type #
Ask an LLM
“Is a user subscribed to a specific notification type?”
“Can I check one notification subscription by its type?”
Tell an agent
Get user {userId}'s subscription for notification type {notificationType}.
Check whether {userId} is subscribed to {notificationType}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/okta:okta-user-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

okta-user-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Okta User API
  description: Allows customers to easily access the Okta API
  termsOfService: https://developer.okta.com/terms/
  contact:
    name: Okta Developer Team
    url: https://developer.okta.com/
    email: devex-public@okta.com
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 2.16.0
servers:
- url: https://your-subdomain.okta.com/
tags:


# --- truncated at 32 KB (79 KB total) ---
# Full source: https://artifacts.apis.io/okta/openapi/okta-user-api-openapi.yml