Roles
Last updated
Was this helpful?
Last updated
Was this helpful?
Endpoint to list roles of an organization.
Args: organization_id: Organization id. name: Name of the role to filter by. user_id: User ID to filter by. team_id: Team ID to filter by. resource: Resource to filter by. action: Action to filter by. system_managed: Filter by the system managed property. type: Type of the role to filter by. level: Level of the role to filter by. assigned_to_current_user: If True, only include roles assigned to the current user. workspace_scope: Scope at which the role is assigned. project_scope: Scope at which the role is assigned. offset: Offset for pagination. limit: Limit for pagination. user: Authenticated user. rbac: RBAC component.
Raises:
ValueError: If both user_id
and assigned_to_current_user
are set.
Returns: List of all roles matching the given filters.
normal
Enum that represents the type of a role.
Scope levels.
false
0
100
Model for viewing roles.