Directory Sync (SCIM)
Directory Sync adds people to your PromptGuard organization from your identity provider (Okta, Microsoft Entra ID, Google Workspace, and more), and removes them when they are deactivated, suspended or deleted in the directory, no manual invites.Directory Sync comes with SSO, on the Enterprise and Shadow Enterprise plans (Pricing), and works best alongside SSO. Talk to us to enable it.
Why use it
- Automatic onboarding: a new hire in your directory becomes a PromptGuard member without an invite.
- Automatic offboarding: deactivating, suspending or deleting a user in your directory removes them from your PromptGuard organization, revokes their credentials there and signs them out of every dashboard session, at once. The exception is your organization’s owner, whom Directory Sync never removes: they stay signed in until you resolve it by hand.
- One source of truth: your directory, not a separate PromptGuard member list.
Prerequisites
- An organization on a plan that includes SSO: Enterprise or Shadow Enterprise.
- The Owner or Admin role.
- A directory that supports SCIM 2.0 (most major IdPs do).
- SSO configured (recommended, so synced users sign in seamlessly).
Set up Directory Sync
1
Open the SSO settings
In the dashboard, go to Settings → SSO and click Configure Directory Sync. PromptGuard opens the secure, hosted setup portal for your organization.
2
Connect your directory
In the portal, choose your IdP and follow its guided steps to connect your directory. The portal gives you the SCIM endpoint URL and bearer token to paste into your IdP’s provisioning settings.
3
Assign users or groups
In your IdP, assign the users (or groups) who should have PromptGuard access to the connected application. Your IdP pushes them to PromptGuard.
4
Verify
Back in Organization → Team, confirm the assigned users now appear as members.
What gets synced
Removal affects only the organization connected to the directory. The person’s account, their personal organization and any other organization they belong to are untouched.
Email changes
A PromptGuard account can belong to several organizations, so its sign-in email is not any one directory’s to change. When your IdP changes someone’s email, PromptGuard updates the account’s email only if both the old and the new address are on a domain PromptGuard has verified for your organization, and no other account already uses the new address. Otherwise the account keeps its email; PromptGuard still recognises the person by their directory identity, so later updates and offboarding apply to them as normal.Synced users join as Members. Promote anyone who needs elevated access to Admin or Owner in Organization → Team, or grant project-specific roles in project access settings. Role changes you make in PromptGuard are preserved across syncs while the person stays active. Someone who is deactivated and later reactivated rejoins as a Member.
Security
- Deprovisioning is immediate, when your IdP reports a user as deactivated, suspended or deleted, the member’s access to your organization and their credentials in it end right away, and every dashboard session they hold is signed out. If that member is your organization’s owner, the removal is declined and they stay signed in. API keys, enrolled Shadow AI devices and hosted MCP clients are not dashboard sessions: their keys and devices are revoked with the membership, and a hosted MCP client checks membership on every call, so it loses access to your organization at once.
- Events can reach PromptGuard late, twice or out of order. Each time a user is created or updated, PromptGuard reads that user’s current record from your directory and applies it, so a delayed event cannot undo a newer change, such as re-adding someone you have since deactivated.
- Directory Sync covers organization membership. It does not delete the user’s historical audit-log entries, which are retained for compliance.
Troubleshooting
Assigned users aren't appearing
Assigned users aren't appearing
Confirm the users (or their group) are assigned to the application in your IdP, and that provisioning/push is enabled there. It can take a minute for the first sync to propagate.
A removed user still has access
A removed user still has access
Check that your IdP is still pushing to the connected application: PromptGuard acts only on events it receives. A user who is the organization’s Owner is never removed by Directory Sync; transfer ownership first. Otherwise remove them manually in Organization → Team.
Next steps
Single Sign-On (SSO)
Let synced users sign in with your identity provider.
Organizations & Teams
Roles, members, and project-level access.