Skip to main content
After Enterprise Identity is enabled for your organization, Owners configure connections from Organization Settings → Enterprise Identity. Enterprise Identity settings overview

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
  • Protocolsaml 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:
ButtonPurpose
Open SSO Admin PortalOpens WorkOS Admin Portal to set up SAML or OIDC with your IdP
Open Directory Sync Admin PortalOpens WorkOS Admin Portal to enable SCIM / Directory Sync
Refresh from WorkOSPulls latest connection and directory status into PromptLayer
Test SSOStarts 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)
FieldWhere to find it
SP Entity ID (Audience / Identifier)PromptLayer → Enterprise Identity → Connection → Service provider details
ACS URL (Reply URL)Same block
SP Metadata URLSame 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
FieldValue
Redirect URIhttps://api.workos.com/sso/oidc/callback
Client IDYour WorkOS organization ID (shown in Service provider details)
Discovery URLhttps://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.

Configure SSO with common IdPs

WorkOS supports Okta, Microsoft Entra ID, Google Workspace, OneLogin, and other enterprise IdPs. Follow the in-portal checklist for your provider:
  1. Click Open SSO Admin Portal in PromptLayer.
  2. In WorkOS Admin Portal, choose your IdP and complete the setup wizard.
  3. 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.
  4. Upload IdP metadata or enter client credentials in WorkOS.
  5. Return to PromptLayer and click Refresh from WorkOS so connection status and Service provider details update.
  6. Click Test SSO and sign in with a test user.
Successful Test SSO writes an audit event and updates connection status to active. Test SSO success

Configure Directory Sync (SCIM)

Directory Sync provisions users and groups from your IdP into WorkOS, which forwards events to PromptLayer:
  1. Click Open Directory Sync Admin Portal in PromptLayer.
  2. In WorkOS Admin Portal, enable Directory Sync for your IdP (Okta SCIM, Entra provisioning, etc.).
  3. Assign users and groups in your IdP to the PromptLayer application.
  4. 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:
  1. Complete SSO setup and Test SSO.
  2. Enable SSO enabled.
  3. Configure group mappings and default workspace.
  4. Designate emergency access Owner and complete MFA setup.
  5. Enable Require SSO when ready to enforce.

Troubleshooting setup

SymptomCheck
Test SSO failsIdP 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 inactiveRefresh from WorkOS; verify WorkOS connection state in Admin Portal
Service provider details missingSSO connection must be linked; click Refresh from WorkOS; confirm SSO status is active
Users sign in but have no workspacesGroup mappings or default workspace
SCIM users not appearingDirectory Sync status, group assignments in IdP, audit log for directory events
Wrong org after SSOWorkOS organization link (self-hosted multi-org environments)
Review the audit log for sso_test_failed, sso_login_failed, and directory sync events when triaging.