After Enterprise Identity is enabled for your organization, Owners configure connections from Organization Settings → Enterprise Identity.
WorkOS organization
Each PromptLayer organization maps to one WorkOS organization. When Enterprise Identity is enabled, PromptLayer creates or links this automatically in most environments.
Self-hosted / multi-tenant WorkOS environments: If multiple WorkOS organizations exist and none is linked yet, Owners see a Link WorkOS organization section at the top of Enterprise Identity settings. Select the correct WorkOS org before configuring SSO—linking the wrong one will break sign-in for your IdP.
Connection section
The Connection section shows:
- SSO connection status — whether a SAML or OIDC connection is configured and active
- Directory Sync status — whether SCIM provisioning is connected
- Protocol —
saml or oidc, detected after SSO setup
- Service provider details — copy-ready SAML or OIDC values to paste into your IdP (see below)
- Read-only WorkOS identifiers (organization ID, connection ID, directory ID)
Open the WorkOS Admin Portal
Use the buttons in the Connection section:
| Button | Purpose |
|---|
| Open SSO Admin Portal | Opens WorkOS Admin Portal to set up SAML or OIDC with your IdP |
| Open Directory Sync Admin Portal | Opens WorkOS Admin Portal to enable SCIM / Directory Sync |
| Refresh from WorkOS | Pulls latest connection and directory status into PromptLayer |
| Test SSO | Starts an SSO test flow in a new tab and reports success or failure |
The Admin Portal is the supported place to upload IdP metadata, configure allowed email domains, and enable SCIM. PromptLayer embeds WorkOS Admin Portal links—you do not configure raw SAML endpoints inside PromptLayer itself.
Service provider details (SAML / OIDC)
Your IdP application needs service provider (SP) values—ACS URL, SP Entity ID, redirect URI, and so on. WorkOS generates these per SSO connection.
After an SSO connection is active, the WorkOS Admin Portal shows IdP metadata (Entity ID, SSO URL, certificate) but does not keep showing SP Entity ID / ACS URL. Do not look under Metadata configuration in WorkOS for SP values—that section is IdP-side, not PromptLayer/WorkOS SP-side.
PromptLayer displays a Service provider details block in the Connection section once an SSO connection is linked. Open Organization Settings → Enterprise Identity, then click Refresh from WorkOS (or reload the page) to populate it. Each field has a copy button.
SAML (paste into your IdP, e.g. Entra ID / Okta)
| Field | Where to find it |
|---|
| SP Entity ID (Audience / Identifier) | PromptLayer → Enterprise Identity → Connection → Service provider details |
| ACS URL (Reply URL) | Same block |
| SP Metadata URL | Same block (when your IdP supports metadata import) |
For SAML, PromptLayer derives these values from the live SSO connection. They match what PromptLayer operators see under Service Provider Details in the WorkOS dashboard.
The SP Entity ID is a connection-specific identifier (for example idCeTTkgO0MTyctK22SMgESd7 or https://auth.workos.com/...), not the WorkOS organization ID (org_...). Do not paste the IdP Entity ID from WorkOS Metadata configuration as the audience.
OIDC
| Field | Value |
|---|
| Redirect URI | https://api.workos.com/sso/oidc/callback |
| Client ID | Your WorkOS organization ID (shown in Service provider details) |
| Discovery URL | https://api.workos.com/sso/oidc/.well-known/openid-configuration |
PromptLayer SSO runs through WorkOS. Your IdP integrates with WorkOS using standard SAML or OIDC—there is no separate native OIDC integration outside WorkOS.
WorkOS supports Okta, Microsoft Entra ID, Google Workspace, OneLogin, and other enterprise IdPs. Follow the in-portal checklist for your provider:
- Click Open SSO Admin Portal in PromptLayer.
- In WorkOS Admin Portal, choose your IdP and complete the setup wizard.
- Copy Service provider details from PromptLayer into your IdP (ACS URL, SP Entity ID, or OIDC redirect URI as applicable). During first-time setup, WorkOS may also show SP values in the wizard; after the connection is active, use PromptLayer’s Connection section.
- Upload IdP metadata or enter client credentials in WorkOS.
- Return to PromptLayer and click Refresh from WorkOS so connection status and Service provider details update.
- Click Test SSO and sign in with a test user.
Successful Test SSO writes an audit event and updates connection status to active.
Directory Sync provisions users and groups from your IdP into WorkOS, which forwards events to PromptLayer:
- Click Open Directory Sync Admin Portal in PromptLayer.
- In WorkOS Admin Portal, enable Directory Sync for your IdP (Okta SCIM, Entra provisioning, etc.).
- Assign users and groups in your IdP to the PromptLayer application.
- Return to PromptLayer and click Refresh from WorkOS.
Directory status should show active when SCIM is connected.
Group membership drives group-to-role mappings. Users provisioned without group assignments may sign in via SSO but have no workspace access until mappings exist or a default workspace is configured.
Sign-in policy toggles
The Sign-in policy section (documented in Sign-in policy & break-glass) controls:
- SSO enabled — Allow SSO sign-in for org members
- Require SSO — Block email/password for regular members
- JIT provisioning — Auto-create PromptLayer accounts on first successful SSO login
Recommended order:
- Complete SSO setup and Test SSO.
- Enable SSO enabled.
- Configure group mappings and default workspace.
- Designate emergency access Owner and complete MFA setup.
- Enable Require SSO when ready to enforce.
Troubleshooting setup
| Symptom | Check |
|---|
| Test SSO fails | IdP metadata, SP Entity ID / audience mismatch (must not be the WorkOS org ID), clock skew, allowed email domains in WorkOS, user assigned to app in IdP |
| Connection stays inactive | Refresh from WorkOS; verify WorkOS connection state in Admin Portal |
| Service provider details missing | SSO connection must be linked; click Refresh from WorkOS; confirm SSO status is active |
| Users sign in but have no workspaces | Group mappings or default workspace |
| SCIM users not appearing | Directory Sync status, group assignments in IdP, audit log for directory events |
| Wrong org after SSO | WorkOS organization link (self-hosted multi-org environments) |
Review the audit log for sso_test_failed, sso_login_failed, and directory sync events when triaging.