Teams and RBAC
Share compliance operations across finance, tax, and engineering teammates in WorkOS Organizations while keeping strict role-based access control across dashboard and APIs.
Personal workspaces and WorkOS Organizations
Every account begins with a private personal workspace where you hold the admin role. When you are ready to collaborate, create a shared WorkOS Organization from /dashboard/team. You keep full access to your personal workspace and can switch between personal and organization workspaces at any time.
Plans, billing, API keys, legal entities, custom products, custom rules, exemption certificates, transactions, and filing periods are isolated per workspace.
Role matrix
| Role | Dashboard & API permissions |
|---|---|
admin | Full workspace control: manage billing, API keys, team invitations and member roles, legal entities, registrations, products, custom rules, exemptions, transactions, filings, compliance alerts, and outbound webhooks. |
tax_manager | Full compliance operations: create and update entities, registrations, products, custom rules, exemptions, committed transactions, voids, refunds, filing periods or amendments, compliance alerts, and outbound webhooks. Cannot manage billing, API keys, or team membership. |
read_only | Read and estimation access: run rate lookups and non-committed tax calculations, inspect taxability and nexus exposure, and view entities, products, rules, exemptions, transactions, reports, filings, alerts, and webhook configurations. Cannot mutate compliance records or manage billing, keys, or team members. |
read_only until an admin promotes them.Inviting and managing team members
Organization admins manage access from /dashboard/team:
- Invite teammates by email with an assigned role (
admin,tax_manager, orread_only), and view or revoke pending invitations. - Promote, downgrade, or remove active members directly in the team roster. Removing a member blocks their WorkOS organization session immediately, and admins should rotate any shared organization API keys the departed member had access to.
- Last-admin protection blocks demoting or removing the sole remaining
adminso an organization can never lock itself out.
Immediate RBAC enforcement
Role changes and removals are synced directly to the workspace membership store and evaluated on every authenticated request—so downgrades and revocations take effect immediately across the dashboard and backend APIs without waiting for session tokens to expire.
Actions outside a member's role return HTTP 403 (forbidden). Machine-to-machine Bearer API keys operate for server integrations (optionally restricted via entity scoping) and never access billing, key-management, or team-management endpoints.
Workspace audit logs
Workspace and compliance mutations (entities, registrations, products, custom rules, exemptions, transactions, filings, API keys, webhooks, commerce connections, team members, and acknowledged alerts) record an immutable audit event capturing the actor (user, api_key, or system), action name, affected resource, summary, and structured metadata. Organization sessions require the Admin role (personal workspace owners resolve to admin; 403 forbidden for lower roles). Inspect and filter events in the dashboard at /dashboard/audit or export filtered records programmatically via GET /audit-logs.
| Query parameter | Values & rules |
|---|---|
resourceType | One of entity, registration, product, rule, exemption, transaction, filing, api_key, webhook, connection, team_member, or alert. |
action | Exact dotted action name, such as exemption.created, filing.marked_filed, alert.acknowledged, or team_member.removed. |
entityId | Scope audit events to a specific legal entity (ent_...). |
from / to | Inclusive UTC calendar dates (YYYY-MM-DD). |
format | json (default) or csv (returns text/csv with Content-Disposition: attachment; filename="audit-logs.csv", plus X-Truncated: true and X-Next-Cursor headers when additional rows match). |
limit / cursor | Page size: 1-100 (default 50) for JSON, 1-1000 (default 500) for CSV, plus opaque unpadded base64url cursor from nextCursor or X-Next-Cursor. |
{
"count": 2,
"hasMore": true,
"nextCursor": "MTc5NjA4MzIwMDAwMDphdWRfNGE1YjZjN2Q4ZTlmMGExYjJjM2Q0ZTVm",
"entries": [
{
"auditId": "aud_4a5b6c7d8e9f0a1b2c3d4e5f",
"actorType": "user",
"actorId": "user_01JV8X9Y0Z",
"actorLabel": "user_01JV8X9Y0Z",
"action": "filing.marked_filed",
"resourceType": "filing",
"resourceId": "flg_8f7e6d5c4b3a29180716253443526170",
"entityId": "ent_9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d",
"summary": "Marked Texas filing period 2026-11-01 to 2026-11-30 as filed.",
"metadata": {
"stateCode": "TX",
"confirmationNumber": "TX-2026-11-88412"
},
"createdAt": 1796083200000
},
{
"auditId": "aud_1f2e3d4c5b6a798897a6b5c4",
"actorType": "api_key",
"actorId": "na_a1b2c3d4",
"actorLabel": "na_a1b2c3d4...9f42",
"action": "exemption.created",
"resourceType": "exemption",
"resourceId": "exc_3a4b5c6d7e8f9a0b1c2d3e4f",
"entityId": "ent_9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d",
"summary": "Created resale exemption certificate FL-RES-90210 for Acme Wholesale.",
"metadata": {
"customerId": "cust_acme_001",
"states": ["FL"]
},
"createdAt": 1796081400000
}
]
}