Organization, roles & multi-tenancy
Understand organization contexts, role-based access control and how requests are scoped to an organization.
1. Sub-account contexts
Enterprise platforms can manage distinct organization contexts. Sub-accounts act as isolated environments with separate API keys, consent configurations, custom clinical branding, and independent webhook targets. Team members can switch their active organization in the Console.
2. Role-based access control (RBAC)
Access permissions are securely evaluated against the user's active role. Scopes define the level of authorization:
| Role | Access Level | Permission Tags Checked |
|---|---|---|
| owner | Full account control and billing | * |
| admin | Manage configs, invite clinicians, view full audit logs | contracts:*, consent:*, invite:* |
| member | Create/send signature requests, review intake state | contracts:view, consent:view, consent:sign |
3. Inviting team members
Administrators and owners can invite doctors, clinical coordinators, or administrative representatives to their organization sub-accounts. Invitations trigger a secure onboarding email flow containing context-scoped invitation tokens.
4. Multi-Tenant Security & Isolation
Requests use the active organization context to scope access to resources:
API key scoping
Every generated API key maps uniquely to its creator organization ID. Intercepted request headers querying resources outside the matching company context automatically return standard authorization errors.
Request constraints
Data queries enforce organization boundary parameters on every transaction. Standard operations always filter queries by the authenticated organization context before executing read or write actions.
Organization boundaries
Organization lookup filters and CORS restrictions help control access to templates, signed agreements and webhook logs. Keep organization keys on your server and assign only the permissions each team member needs.