Clerk Runbook: Organizations, SSO & RBAC
Praxion uses Clerk for authentication and organization management. Each Clerk Organization maps 1:1 to a Praxion workspace — there is no shared "default workspace", so billing, glossary and audit logs are always scoped to a single org. This runbook covers the mapping, the role model, SSO, and the operations you will actually run.
The org → workspace mapping
When a Clerk Organization is created, Praxion provisions a matching workspace and binds it via the org ID. All of the following inherit that scope automatically:
- Optimizer suggestions, the schema map and the glossary
- Natural-language query sessions and the terms they resolve against
- CI gate keys and the verdicts they produced
- Audit log (hash-chained, append-only)
- Billing — the workspace is the billing unit
Roles and RBAC
Clerk organization roles are mapped to local roles through the role_mappings table. The local role set is viewer, optimizer, admin, auditor, billing and agent. Three of them cover the everyday cases:
auditor and billing complete the set so that reading the audit chain or the invoice does not have to mean handing out admin. agent is not a person at all — it is the credential type an agent presents when it reports.
org:admin role, which maps to admin; everyone who joins as org:member maps to viewer. Other roles are granted by adding rows to the mapping table.
role_mappings is deployment-wide rather than per workspace, which is why it is managed by Praxion support instead of from the dashboard: the API behind it requires an operator key, not an admin session. Tell us which members should hold which roles.
Enterprise SSO (SAML)
SAML single sign-on is not enabled yet. Today everyone signs in through Clerk, inside the organization that owns the workspace. SAML can be set up for an Enterprise customer on request: it is a connection we configure in Clerk, not something you switch on from the dashboard. If your policy requires SSO, raise it before you sign and we will tell you exactly where it stands.
Roles do not come from your identity provider's groups. They come from your Clerk organization role, through the mapping table above.
Common operations
Add a member
Invite colleagues from the Team screen. Invitations are sent by email and expire. A colleague who accepts joins the same organization and shares its glossary, its database connections and its invoice — as a member, which maps to the viewer role. They can read the dashboard but cannot connect databases or change billing. Promote them to admin from the members tab if they need to.
Remove a member
Removing someone from the Clerk org revokes their workspace access instantly. Their sessions are invalidated on the next request; audit log entries are not deleted — ever.
Rotate a CI key
The key lives on the CI Gate screen, beside the pipeline it belongs to. Create the replacement there, update the secret in GitHub or GitLab, and revoke the old one. Do this whenever someone with access to your CI secrets leaves.
Troubleshooting
- User cannot see the workspace. Check they are in the org and that a mapping gives them at least
viewer. The usual cause is that they accepted an invitation to a different organization. - Role feels wrong. Check their Clerk organization role — the Praxion role comes from the mapping table, keyed on that.
- Billing shows the wrong org. Billing is bound to the workspace. Check which organization owns the workspace before questioning the invoice.
Organizations and RBAC on every plan.
Every workspace is an organization with role-based access, on every plan.
See plans →