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
- A portal with at least one access group
- An account with Okta for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| OAuth 2.0 (default) | OAuth | Signs in to Okta after entering domain |
| SSWS API Token | API token | token |
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:
| Scope | Name | What it allows |
|---|---|---|
okta.users.read | Read Users | Read user profiles and attributes |
okta.users.manage | Manage Users | Create, update, and delete users |
okta.groups.read | Read Groups | Read groups and memberships |
okta.groups.manage | Manage Groups | Create, update, and delete groups |
okta.apps.read | Read Apps | Read application configurations |
okta.apps.manage | Manage Apps | Create, update, and delete applications |
okta.policies.read | Read Policies | Read authentication and access policies |
okta.policies.manage | Manage Policies | Create, update, and delete policies |
okta.logs.read | Read Logs | Read system log events |
okta.eventHooks.read | Read Event Hooks | Read event hook configurations |
okta.eventHooks.manage | Manage Event Hooks | Create, update, and delete event hooks |
okta.factors.read | Read Factors | Read user factor enrollments |
okta.factors.manage | Manage Factors | Enroll and manage user factors |
okta.sessions.read | Read Sessions | Read user sessions |
okta.sessions.manage | Manage Sessions | Create and revoke user sessions |
openid | OpenID Profile | Access user profile via OpenID Connect |
profile | Profile | Access user profile information |
offline_access | Offline Access | Allow 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:
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
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.
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 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. NeedsuserId.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. NeedspolicyType.list_users: Search and list users in your Okta organization.
Write tools (2)
update_user: Update an existing Okta user's profile attributes. NeedsuserId.create_user: Create a new user in Okta. NeedsfirstName,lastNameandemail.
Destructive tools (6)
manage_group: Create, update, or delete an Okta group. Needsaction.user_lifecycle: Perform lifecycle operations on an Okta user: **activate**, **deactivate**, **suspend**, **unsuspend**, **unlock**, **reset_password**, **reset_factors**, or **delete**. NeedsuserIdandaction.manage_app_assignment: Assign or unassign users and groups to/from an Okta application. NeedsactionandappId.manage_user_factors: List, enroll, or reset MFA factors for an Okta user. NeedsactionanduserId.manage_group_membership: Add or remove users from an Okta group, or list current group members. NeedsactionandgroupId.manage_event_hook: Create, read, update, delete, list, and run lifecycle operations for Okta event hooks. Needsaction.
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
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Okta there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Okta on metorial.com: the integration overview