v1

latestOpenAPI 3.1.02026-08-066984441.1 MB
roles

Returns all roles of the workspace.

<Check title="Required Permissions" icon="key">The user must be an admin or have workspace-manage-config:read permissions.</Check>

get/roles

Query parameters

showArchivedboolean

Whether to show archived roles.

Headers

Authorizationstring required

Bearer authentication

Response

OK

namestring required

The name of the role. Must be unique.

isAdminRoleboolean

Whether this is the admin role. Only one role can be the admin role.

isGuestRoleboolean

Whether this is the guest role. Only one role can be the guest role.

idstring uuid

The id of the role.

isAgentRoleboolean

Whether this is a retained role from the legacy agent-as-user model. The role cannot be modified.

isPresetboolean

Whether this role is one of the preset roles. Preset roles can be edited, archived and deleted.

isArchivedboolean

Whether the role has been archived.

createdBystring uuid

The id of the user who created this role.

createdOnstring date-time

The date this role was created.

updatedBystring uuid

The id of the user who updated this role.

updatedOnstring date-time

The date this role was last modified.