permissionAndRoleManagement
List system and custom roles
Organisation.Role + List
<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 all roles in the Workspace. System roles come first, in the order Administrator, User, and Observer, followed by custom roles alphabetically.
Pass include_permissions=true to also receive each role's permission list. Use my in place of a numeric orgId to target the caller's own Workspace.
get/api/v1/organisation/{orgId}/role
Request
- Base URL: https://cdn.emnify.net
- URL: https://cdn.emnify.net/api/v1/organisation/{orgId}/role
- Auth: HTTP bearer
Path parameters
Workspace identifier. Either a positive integer organization ID, or the literal string my to target the caller's own Workspace.
Query parameters
include_permissionsboolean
When true, each returned role also includes its permissions array. Defaults to false to keep the list response light.
Response
Successful response.
Changes
No recorded changes to this operation across all 1 revision of this API.