Retrieve a role with its permissions
<Info icon="fa-light fa-lock" className="permission-callout">
<div className="permission-callout__header"><span className="permission-callout__title"><span className="permission-callout__label">Required permissions</span> <span className="fern-docs-badge small blue subtle rounded-full permission-callout__beta">Beta</span></span> <span className="permission-callout__learn-more">[Learn more](/developers/api-guidelines/permissions#how-permissions-work)</span></div>
`Organisation.Role` + `Get`
<div className="permission-callout__roles"><span className="permission-callout__roles-label">Roles:</span> <Badge intent="info">Administrator</Badge> <Badge intent="info">User</Badge></div>
</Info>
Returns a single role with its full permission list.
Works for both system and custom roles.
Use `my` in place of a numeric `orgId` to target the caller's own Workspace.
Authentication
AuthorizationBearer
An auth_token should be provided to authenticate a session.
To obtain an auth_token, see the /api/v1/authenticate POST request.
Path parameters
roleId
Numeric identifier of the role.
orgId
Workspace identifier.
Either a positive integer organization ID, or the literal string my to target the caller’s own Workspace.
Response
Successful response.
id
Unique role identifier.
name
Display name of the role.
name_translation_key
Translation key for the role name.
Set for system roles only.
description
Human-readable description of the role. An empty string when no description has been set.
description_translation_key
Translation key for the role description.
Set for system roles only.
user_count
Number of users assigned to this role in the Workspace.
type
Whether this is a system-defined role or an organization’s custom role.
is_system_role
True for built-in system roles, which can’t be modified or deleted.
permissions
Full list of permissions assigned to this role.
Errors
404
Not Found Error