KosmoKrator

identity

Okta CLI for Headless Automation

Use the Okta CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.

10 functions 6 read 4 write API token auth

Okta CLI for Headless Automation

Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.

Use headless automation when another tool needs a stable local command surface. The Okta CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Okta CLI for Headless Automation
kosmokrator integrations:configure okta --set api_token="$OKTA_API_TOKEN" --set domain="$OKTA_DOMAIN" --enable --read allow --write ask --json
kosmo integrations:call okta.okta_list_users '{"limit":1,"q":"example_q"}' --json

Discovery Before Execution

Agents and scripts can inspect Okta docs and schemas before choosing a function.

kosmo integrations:docs okta --json
kosmo integrations:docs okta.okta_list_users --json
kosmo integrations:schema okta.okta_list_users --json
kosmo integrations:search "Okta" --json
kosmo integrations:list --json

Useful Okta CLI Functions

FunctionTypeParametersDescription
okta.okta_list_users Read limit, q List users in the Okta organization. Returns user profiles with IDs, names, emails, and status. Supports search filtering by name or email.
okta.okta_get_user Read id Get details for a specific Okta user by ID or login email. Returns the full user profile including status, group memberships, and assigned applications.
okta.okta_get_current_user Read none Get the profile of the currently authenticated Okta API token owner. Useful for verifying the integration connection and identifying which service account is in use.
okta.okta_create_user Write profile, credentials, activate Create a new user in Okta. Requires a profile with at least firstName, lastName, email, and login. Optionally provide credentials (password) and control activation.
okta.okta_update_user Write id, profile, credentials Update an existing Okta user profile. Provide only the profile fields you want to change — other fields remain unchanged.
okta.okta_deactivate_user Write id Deactivate an Okta user. The user will be unable to sign in but their data is retained. This action can be reversed by reactivating the user in the Okta admin console.
okta.okta_list_groups Read q List groups in the Okta organization. Returns group names and IDs. Supports search filtering by group name.
okta.okta_get_group Read id Get details for a specific Okta group by ID. Returns the group name, description, and type.
okta.okta_add_user_to_group Write groupId, userId Add a user to an Okta group. The user will inherit the group's assigned applications and permissions.
okta.okta_list_applications Read none List applications in the Okta organization. Returns application names, IDs, statuses, and types.

Automation Notes

Related Okta CLI Pages