//////////////////////////////////////////////////////////////////////////////////////////////
// DO NOT MODIFY THIS FILE //
// This file is automatically generated by ZenStack CLI and should not be manually updated. //
// Source: schema.zmodel · Generated: 2026-02-23 //
//////////////////////////////////////////////////////////////////////////////////////////////
Defines the access level of a user within a workspace.
Roles follow a strict hierarchy: OWNER > ADMIN > MEMBER > VIEWER. Higher roles inherit all permissions of lower roles. The OWNER role cannot be assigned — it is granted automatically to the workspace creator.
Defined in: enums.zmodel
Declaration · enums.zmodel
enum WorkspaceRole {
OWNER
ADMIN
MEMBER
VIEWER
}Possible values for this enumeration.
| Value | Description |
|---|---|
OWNER |
Full control over workspace settings, billing, and member management. |
| Automatically assigned to the workspace creator. Cannot be revoked. | |
ADMIN |
Can manage members, integrations, and most workspace settings. |
| Cannot modify billing or transfer ownership. | |
MEMBER |
Standard access to workspace resources. Can create and edit |
| their own content, comment on others' content, and participate | |
| in workflows. | |
VIEWER |
Read-only access. Can view content and download exports |
| but cannot create, edit, or comment. |
Models and fields that reference this type.
Previous: SubscriptionStatus