MetorialDocs

Set up Okta in Metorial for Claude, ChatGPT and Cursor

Share Okta with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or SSWS API token sign-in, 14 tools (6 read-only).

To give your team Okta in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Okta integration in a Metorial portal, and each person signs in to Okta with their own account. Agents can manage identity and access management for organizations. The integration has 14 tools, 6 read-only, 2 write and 6 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares Okta in a portal and how each person connects
  • The 18 OAuth scopes Okta can request, and what each one allows
  • How to keep the 6 read-only tools and reject the other 8

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth 2.0 (default)OAuthSigns in to Okta after entering domain
SSWS API TokenAPI tokentoken

The portal and metorial setup use OAuth 2.0 unless someone picks another method.

OAuth 2.0

Before the sign-in, setup asks for:

  • domain: Your Okta organization domain, e.g. https://dev-123456.okta.com

People sign in to Okta and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
okta.users.readRead UsersRead user profiles and attributes
okta.users.manageManage UsersCreate, update, and delete users
okta.groups.readRead GroupsRead groups and memberships
okta.groups.manageManage GroupsCreate, update, and delete groups
okta.apps.readRead AppsRead application configurations
okta.apps.manageManage AppsCreate, update, and delete applications
okta.policies.readRead PoliciesRead authentication and access policies
okta.policies.manageManage PoliciesCreate, update, and delete policies
okta.logs.readRead LogsRead system log events
okta.eventHooks.readRead Event HooksRead event hook configurations
okta.eventHooks.manageManage Event HooksCreate, update, and delete event hooks
okta.factors.readRead FactorsRead user factor enrollments
okta.factors.manageManage FactorsEnroll and manage user factors
okta.sessions.readRead SessionsRead user sessions
okta.sessions.manageManage SessionsCreate and revoke user sessions
openidOpenID ProfileAccess user profile via OpenID Connect
profileProfileAccess user profile information
offline_accessOffline AccessAllow refreshing OAuth access tokens without reconnecting

SSWS API Token

To connect, a person enters:

  • token: Okta API token generated in the Admin Console under Security > API > Tokens

Setup settings

Whichever method you pick, setup also asks for:

  • domain: Your Okta organization domain, e.g. https://dev-123456.okta.com

Use your own Okta OAuth app

With your own OAuth app, people see your company's name on the Okta consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Okta and copy the Redirect URI.

Register the app with Okta

Create an OAuth app or client in Okta and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Okta integration.

Admin: share Okta in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Okta. Under Auth Method, keep OAuth 2.0 or pick another. For how members connect, choose Each person connects, so everyone signs in to Okta as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Okta.

Choose who gets it

Add the access groups that should see Okta. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Okta integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search okta

Employee: connect Okta

In the portal

Open Okta in the catalog

Sign in to your portal and open Okta. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. An Okta sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search okta
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth 2.0. To connect with SSWS API Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Okta connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list okta
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 6 read-only tools, such as get_user and list_users, and lose the 2 write tools, such as create_user or update_user, and the 6 destructive tools, such as manage_group or user_lifecycle.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list okta
metorial tools <integration-id>
metorial call <integration-id> list_policies -d '{"policyType":"OKTA_SIGN_ON"}'

metorial tools lists the 14 tools, minus any you rejected. list_policies needs policyType, so replace the placeholders. It lists policies of a given type in your Okta organization.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (6)

  • list_applications: Search and list applications registered in your Okta organization.
  • get_user: Retrieve detailed information about a specific Okta user by their user ID or login. Needs userId.
  • list_groups: Search and list groups in your Okta organization.
  • query_system_log: Query the Okta System Log for audit events.
  • list_policies: List policies of a given type in your Okta organization. Needs policyType.
  • list_users: Search and list users in your Okta organization.

Write tools (2)

  • update_user: Update an existing Okta user's profile attributes. Needs userId.
  • create_user: Create a new user in Okta. Needs firstName, lastName and email.

Destructive tools (6)

  • manage_group: Create, update, or delete an Okta group. Needs action.
  • user_lifecycle: Perform lifecycle operations on an Okta user: **activate**, **deactivate**, **suspend**, **unsuspend**, **unlock**, **reset_password**, **reset_factors**, or **delete**. Needs userId and action.
  • manage_app_assignment: Assign or unassign users and groups to/from an Okta application. Needs action and appId.
  • manage_user_factors: List, enroll, or reset MFA factors for an Okta user. Needs action and userId.
  • manage_group_membership: Add or remove users from an Okta group, or list current group members. Needs action and groupId.
  • manage_event_hook: Create, read, update, delete, list, and run lifecycle operations for Okta event hooks. Needs action.

Triggers

Okta has 2 triggers, which fire on events in Okta:

  • event_hook: Receives Okta event hook notifications for user lifecycle, authentication, group, application, policy, and security events.
  • system_log_poll: [Polling fallback] Polls the Okta System Log for new events.

Next steps