Set up One Login in Metorial for Claude, ChatGPT and Cursor
Share One Login with your team in Claude, ChatGPT and Cursor through Metorial: client credentials sign-in, 19 tools (11 read-only).
To give your team One Login in Claude, ChatGPT, Cursor and other AI clients, an admin shares the One Login integration in a Metorial portal, and each person connects with client credentials. Agents can read and manage OneLogin users, roles and SSO applications, inspect native groups and audit events, and enroll or verify supported MFA factors using tenant-bound API credentials. The integration has 19 tools, 11 read-only, 5 write and 3 destructive, plus 2 triggers.
What you'll learn
- How an admin shares One Login in a portal and how each person connects
- What One Login asks for when you connect, and where to find it
- How to keep the 11 read-only tools and reject the other 8
Before you start
- A portal with at least one access group
- Client credentials from One Login for each person, or one set for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| Client Credentials | Custom credentials | clientId, clientSecret and subdomain |
Client Credentials
To connect, a person enters these values:
clientId: OneLogin API Client IDclientSecret: OneLogin API Client Secretsubdomain: Your OneLogin subdomain (e.g., "mycompany")
Setup settings
Setup also asks for:
subdomain: Your OneLogin account subdomain (e.g., "mycompany" for mycompany.onelogin.com)
Admin: share One Login 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 One Login. For how members connect, choose Each person connects so everyone enters their own client credentials, or Shared connection to enter the client credentials once for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from One Login.
Choose who gets it
Add the access groups that should see One Login. 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 One Login integration. Once it exists, check which groups have it:
Employee: connect One Login
In the portal
Open One Login in the catalog
Sign in to your portal and open One Login. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your client credentials (clientId, clientSecret and subdomain).
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.
Add it to your AI client
metorial install adds your One Login 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 11 read-only tools, such as get_app and get_role, and lose the 5 write tools, such as create_user or update_user, and the 3 destructive tools, such as manage_app or delete_user.
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 19 tools, minus any you rejected. list_groups takes no input. It lists one native page of groups in OneLogin.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (11)
list_apps: List SSO-connected applications in OneLogin.get_mfa_factors: Retrieve MFA information for a user including both available (unenrolled) factors and enrolled devices. NeedsuserId.get_app: Retrieve detailed information about a specific OneLogin application by its ID. NeedsappId.list_events: Query historical events from your OneLogin account for audit logging, compliance, and reporting.list_users: Search and list users in the OneLogin directory.list_roles: List roles in OneLogin.get_user: Retrieve detailed information about a specific OneLogin user by their ID. NeedsuserId.get_event_types: Retrieve all available event types from OneLogin.list_groups: List one native page of groups in OneLogin.get_group: Read one exact OneLogin group with its native policy, users and administrators.get_role: Read the native base role by its exact numeric ID.
Write tools (5)
create_user: Create a new user in the OneLogin directory.update_user: Update an existing user's profile in OneLogin. NeedsuserId.manage_user_roles: Assign or remove roles from a OneLogin user. NeedsuserId,actionandroleIds.verify_mfa_factor: Verify an MFA factor enrollment by submitting the OTP code. NeedsuserIdandregistrationId.enroll_mfa_factor: Enroll a new MFA factor for a OneLogin user. NeedsuserId,factorIdanddisplayName.
Destructive tools (3)
manage_app: Create, update, or delete an SSO-connected application in OneLogin. Needsaction.manage_role: Create, update, or delete a role in OneLogin. Needsaction.delete_user: Permanently delete a user from the OneLogin directory. NeedsuserId.
Triggers
One Login has 2 triggers, which fire on events in One Login:
event_webhook: Receives real-time events from the OneLogin Event Broadcaster webhook.account_events: [Polling fallback] Polls for new events on your OneLogin account including authentication, user lifecycle, app access, MFA, admin actions, and provisioning events.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use One Login there
- Tool permissions: tool filters and what employees see
- One Login on metorial.com: the integration overview