Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 2.1 KB

File metadata and controls

73 lines (51 loc) · 2.1 KB
//////////////////////////////////////////////////////////////////////////////////////////////
// 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                                            //
//////////////////////////////////////////////////////////////////////////////////////////////

Index / Enums / WorkspaceRole

WorkspaceRole Enum

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
}

🏷️ Values

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.

📍 Used By

Models and fields that reference this type.

diagram


📚 References


Previous: SubscriptionStatus