Work / Scrvio / Wiki / Entities
roles
Entitycanonicalverified 2026-10-04
ROLES.SCRVIOSummary
The two kinds of role: what a user is in the system, and what a member is in a workspace.
Canonical values
| Key | Value | Last changed |
|---|---|---|
| USER.ROLES | ADMIN, USER |
2026-10-04 |
| ORG.ROLES | OWNER, ADMIN, MEMBER |
2026-10-04 |
| ORG.MEMBER-STATUS | INVITED, ACTIVE, SUSPENDED |
2026-10-04 |
| ORG.ROLE.ASSIGNABLE | Member, Admin — the owner cannot be changed or removed | 2026-10-04 |
| ORG.ROLE.MEMBER.COPY | "Can view and access shared recordings" | 2026-10-04 |
| ORG.ROLE.ADMIN.COPY | "Can manage members, storage, and workspace settings" | 2026-10-04 |
| ORG.ROLE.BADGE | Owner red, Admin yellow, Member blue | 2026-10-04 |
| SHARE.MIN-ROLE | Member, Admin or Owner — set when sharing a recording with a workspace | 2026-10-04 |
| ADMIN.GATE | /admin/* needs UserRole.Admin; anyone else is sent to / |
2026-10-04 |
Where the code and the copy disagree
- There is no Viewer role.
data/features.tspromises "Owner, Admin, Member, Viewer" and the members page has a badge colour forVIEWER, but the enum has three values.
Related
Sources
- packages/db/prisma/schema.prisma —
UserRole,OrgMemberRole,OrgMemberStatus - apps/website/src/app/workspace/[id]/members/page.tsx
- packages/ui/src/components/sharing/share-with-team-modal.tsx
- packages/ui/src/components/auth/role-guard.tsx