Role Management API
Define and assign roles for permission-based access control. Roles aggregate permissions derived from resource server scopes and can be assigned directly to users or groups.
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:8090/oauth2/token, authorization URL https://localhost:8090/oauth2/authorize
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
clientCredentials flow, token URL https://localhost:8090/oauth2/token
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
Roles
Create roles, define their permission scopes, and assign them to users or groups.
List roles
GET /roles
Lists every role in the deployment. A filter naming an organization unit lists the roles that
unit owns, followed by the roles shared with it. Each role says whether the listed unit owns it.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | Maximum number of records to return. Default: | |
offset | query | integer | Number of records to skip for pagination. Default: | |
filter | query | string | Lists the roles one organization unit owns, followed by the roles shared with it. The only
supported filter is |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of roles | RoleListResponse |
400 | Bad request | Error |
500 | Internal server error | Error |
Create a new role
POST /roles
Creates a new role with optional initial permissions and assignments
Scopes: system
Request body (required): application/json
Schema: CreateRoleRequest
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the role |
description | string | Optional description of the role | |
ouId | string (uuid) | Yes | ID of the organization unit this role belongs to |
permissions | array of ResourcePermissions | Optional list of initial permissions grouped by resource server | |
assignments | array of AssignmentInput | Optional list of initial user and group assignments |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Role created | RoleWithAssignments |
400 | Bad request | Error |
403 | Forbidden | Error |
409 | Conflict | Error |
500 | Internal server error | Error |
Get role details
GET /roles/{id}
Returns role metadata with permissions list. With ouId, returns the role as that organization
unit sees it: the role itself when the unit owns it, and the shared role, read under the unit,
when the role is shared with it. A role not shared with the unit is not found.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | |
ouId | query | string (uuid) | Organization unit to read the role as. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Role details | Role |
400 | Bad request | Error |
404 | Role not found, or not shared with the organization unit named in ouId | Error |
500 | Internal server error | Error |
Update role
PUT /roles/{id}
Updates role name, description, organization unit, and permissions.
The ouId decides what the update is. The organization unit that owns the role updates it in
place. An organization unit the role is shared with cannot update it: a role's name,
description and permissions stay with its owner, so such an update is refused with ROL-1034.
A shared organization unit manages its own assignments of the role through
/roles/{id}/assignments. Any other organization unit is somewhere to move the role to, which
is refused while the role has sharing policies or assignments.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Request body (required): application/json
Schema: UpdateRoleRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the role |
description | string | Optional description of the role | |
ouId | string (uuid) | Yes | The organization unit the update is made as: the owner, an organization unit the role is shared with, or one to move the role to |
permissions | array of ResourcePermissions | Yes | List of resource permissions grouped by resource server |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Role updated | Role |
400 | Bad request | Error |
403 | Forbidden | Error |
404 | Role not found | Error |
409 | Conflict | Error |
500 | Internal server error | Error |
Get role assignments
GET /roles/{id}/assignments
Returns the role's assignments in every organization unit, each naming the unit it was made in.
A filter naming an organization unit returns only the assignments made there. Use type to
filter by assignee type and include=display to get display names.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | |
type | query | string | Filter assignments by assignee type. When omitted, assignments of all types are returned. Allowed values: | |
filter | query | string | Lists only the assignments made in one organization unit. The only supported filter is
| |
include | query | string | Optional parameter to include additional information.
Allowed values: | |
limit | query | integer | Maximum number of records to return. Default: | |
offset | query | integer | Number of records to skip for pagination. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of assignments | AssignmentListResponse |
400 | Bad request | Error |
404 | Role not found | Error |
500 | Internal server error | Error |
Add assignments to a role
POST /roles/{id}/assignments/add
Adds one or more user or group assignments to the specified role in the organization unit named
in ouId, or in the role's owner when it is omitted. An organization unit the role is shared
with may assign it unless the role's sharing policies turn its assignments off there. Each
assignee must be available in that organization unit: a user, application or agent it owns or
that is shared with it, or a group it owns.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Request body (required): application/json
Schema: AssignmentsRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string (uuid) | ID of the organization unit the assignments are made in or removed from: the role's owner when omitted, or an organization unit the role is shared with | |
assignments | array of AssignmentInput | Yes | List of user and group assignments |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Assignments added successfully | |
400 | Bad request | Error |
403 | Forbidden | Error |
404 | Role not found, or not shared with the organization unit named in the body | Error |
500 | Internal server error | Error |
Remove assignments from a role
POST /roles/{id}/assignments/remove
Removes one or more user or group assignments from the specified role.
An assignment that a user share mandates goes only when the user share stops naming the role. A direct assignment of the same role to the same user in the same organization unit is separate and can still be removed.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Request body (required): application/json
Schema: AssignmentsRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string (uuid) | ID of the organization unit the assignments are made in or removed from: the role's owner when omitted, or an organization unit the role is shared with | |
assignments | array of AssignmentInput | Yes | List of user and group assignments |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Assignments removed successfully | |
400 | Bad request | Error |
403 | Forbidden | Error |
404 | Role not found, or not shared with the organization unit named in the body | Error |
500 | Internal server error | Error |
Role Sharing
Share a role with other organization units.
List sharing policies
GET /roles/{id}/sharing-policies
Returns the role's sharing policies, declared ones included. A policy a resource file
declares is listed with isReadOnly set to true and cannot be edited or deleted here.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Role ID |
limit | query | integer | Maximum number of records to return. Default: | |
offset | query | integer | Number of records to skip for pagination. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Sharing policies | RoleSharingPolicyListResponse |
400 | The page the listing asked for is not one it can return. | Error |
404 | No such role | Error |
500 | Internal server error | Error |
Create a sharing policy
POST /roles/{id}/sharing-policies
Records one organization unit's decision about which other organization units this role is shared with. Exactly one policy exists per role per initiating organization unit; a second create is refused.
A role declared in a resource file declares its owner's policy there too, so this endpoint refuses one for it. An organization unit the declared policy shares with can still record its own reshare here, unless roles are configured to load from resource files only: then all of their sharing, reshares included, is declared, and this endpoint refuses every policy.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Role ID |
Request body (required): application/json
Schema: RoleSharingPolicyRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
initiatingOuId | string | The organization unit whose decision this is. Omitted means the role's owner. A
unit other than the owner may only issue a policy where the role already reached
it and stopped there, and such a policy may state | |
childUnits | RoleChildUnits | The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
| |
otherTreeRoots | RoleOtherTreeRootsSelected | Named root organization units of other trees, and nothing below them. Owner only. Another tree is reached at its root alone; that root passes the role on within its own tree. The root of the owner's own tree is not another tree and cannot be named. When the owner sits below a root, this additionally requires
| |
version | integer | The policy version the caller believes it is editing. Required on an edit, ignored on a create. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Sharing policy created | RoleSharingPolicy |
400 | The policy is not one the issuing organization unit may write. The code says which kind of mistake it is, and the description says what is wrong with this request in particular. | Error |
404 | No such role | Error |
409 | The organization unit already holds a policy for this role, the policy moved since it was read, or the edit would unshare the role from a unit where a user share mandates it. | Error |
500 | Internal server error | Error |
Get a sharing policy
GET /roles/{id}/sharing-policies/{policyId}
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Role ID |
policyId | path | string | Yes | Sharing policy ID |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Sharing policy | RoleSharingPolicy |
404 | No such role, or no such sharing policy on this role | Error |
500 | Internal server error | Error |
Replace a sharing policy
PUT /roles/{id}/sharing-policies/{policyId}
Replaces the policy's sections. version must be the policy's current version; a stale one
is refused.
A section reaching a whole group (mode: all, or allUnits) keeps that reach and can only
change its excludedOuIds. A section naming units can add or drop them, but cannot become
one that reaches a whole group.
Refused for roles that load from resource files only.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Role ID |
policyId | path | string | Yes | Sharing policy ID |
Request body (required): application/json
Schema: RoleSharingPolicyUpdateRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
allUnits | RoleAllUnits | Every organization unit in the deployment, at any depth, including units created later. It
stands alone: a policy that states it states neither A reach not bounded by the issuer's own position in the tree is a deployment decision, so it is written where such decisions are reviewed: a resource file, or a document imported from one. A create through this API may not state it. A policy written that way still reads back through these endpoints, and an edit restates it to rewrite its exclusions. | |
childUnits | RoleChildUnits | The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
| |
otherTreeRoots | RoleOtherTreeRoots | The root organization units of other trees, as a policy carries them. Every shape a create may send, plus the one that only a resource file or an imported document may introduce. An edit sends this shape rather than the create's, because a policy that already reaches the root of every other tree has to be able to restate that to rewrite its exclusions. | |
version | integer | Yes | The policy version the caller believes it is editing. An edit against any other version is refused, so a caller that has not seen the current one cannot overwrite it. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Sharing policy replaced | RoleSharingPolicy |
400 | The replacement is not one this policy may become. Alongside the mistakes a create can make, an edit answers for the reach the policy already has. | Error |
404 | No such role, or no such sharing policy on this role | Error |
409 | The organization unit already holds a policy for this role, the policy moved since it was read, or the edit would unshare the role from a unit where a user share mandates it. | Error |
500 | Internal server error | Error |
Delete a sharing policy
DEL /roles/{id}/sharing-policies/{policyId}
Removes the policy and the policies its sharees issued beneath it.
A declared policy cannot be deleted here. Its existence belongs to the resource file that declares it, so it goes away by being removed from that file. Where roles load from resource files only, no policy is deleted here.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Role ID |
policyId | path | string | Yes | Sharing policy ID |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Sharing policy deleted, or the role holds no policy under that id. | |
400 | The policy exists but is not this endpoint's to remove. A policy that is simply absent answers 204, because a delete says what the state should be afterwards. | Error |
404 | No such role | Error |
409 | The delete would unshare the role from a unit where a user share mandates it. | Error |
500 | Internal server error | Error |
Overlay rules for an organization unit
GET /roles/{id}/overlay-rules
Answers for one organization unit, named in the ouId query parameter: whether it owns the
role, which policies reached it, and whether it may assign the role.
An organization unit no policy reaches answers 404, because the role is not
available there and so has no terms to resolve.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Role ID |
ouId | query | string | Yes | The organization unit to resolve for. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Resolved overlay | RoleResolvedOverlay |
400 | The request does not say which organization unit to resolve for. | Error |
404 | No such role, or no sharing policy reaches the organization unit, so the role is not available there and has no terms to resolve. | Error |
500 | Internal server error | Error |
Schemas
Assignment
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | ID of the user, app, agent, or group being assigned |
type | string | Yes | Type of entity being assigned (user, app, agent, or group) Allowed values: |
ouId | string (uuid) | Yes | ID of the organization unit the assignment was made in: the role's owner, or an organization unit the role is shared with |
display | string | Display name of the user or group (only included when include=display query parameter is used). For users, resolved from the schema-configured display attribute; falls back to the user ID if the attribute is not configured, the path does not exist, or the value is empty. For groups, the group name is used. | |
isReadOnly | boolean | True on an assignment the organization unit cannot remove because a user share mandates it |
AssignmentInput
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | ID of the user, app, agent, or group being assigned |
type | string | Yes | Type of entity being assigned (user, app, agent, or group) Allowed values: |
ResourcePermissions
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
resourceServerId | string (uuid) | Yes | ID of the resource server these permissions belong to |
permissions | array of string | Yes | List of permission strings for this resource server |
RoleSummary
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | Unique identifier for the role |
name | string | Yes | Name of the role |
description | string | Optional description of the role | |
ouId | string (uuid) | Yes | ID of the organization unit this role belongs to |
ouHandle | string | Handle of the organization unit this role belongs to | |
isReadOnly | boolean | Indicates if the role cannot be modified: it is defined in declarative configuration, or it is shared with the listed organization unit, which cannot change its name, description or permissions | |
isOwnedByOU | boolean | Whether the organization unit the role is listed under owns it. A role shared with that organization unit is listed under it with this set to false. |
Role
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | Unique identifier for the role |
name | string | Yes | Name of the role |
description | string | Optional description of the role | |
ouId | string (uuid) | Yes | ID of the organization unit this role belongs to |
ouHandle | string | Handle of the organization unit this role belongs to | |
isOwnedByOU | boolean | Whether the organization unit the role is read as owns it. A role read as an organization unit it is shared with carries that unit's ouId and ouHandle, with this set to false. | |
permissions | array of ResourcePermissions | Yes | List of resource permissions grouped by resource server. Always returned as an array, with an empty array when the role has no permissions. |
RoleWithAssignments
Type: Role
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | Unique identifier for the role |
name | string | Yes | Name of the role |
description | string | Optional description of the role | |
ouId | string (uuid) | Yes | ID of the organization unit this role belongs to |
ouHandle | string | Handle of the organization unit this role belongs to | |
isOwnedByOU | boolean | Whether the organization unit the role is read as owns it. A role read as an organization unit it is shared with carries that unit's ouId and ouHandle, with this set to false. | |
permissions | array of ResourcePermissions | Yes | List of resource permissions grouped by resource server. Always returned as an array, with an empty array when the role has no permissions. |
assignments | array of Assignment | List of user and group assignments with display names |
CreateRoleRequest
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the role |
description | string | Optional description of the role | |
ouId | string (uuid) | Yes | ID of the organization unit this role belongs to |
permissions | array of ResourcePermissions | Optional list of initial permissions grouped by resource server | |
assignments | array of AssignmentInput | Optional list of initial user and group assignments |
UpdateRoleRequest
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the role |
description | string | Optional description of the role | |
ouId | string (uuid) | Yes | The organization unit the update is made as: the owner, an organization unit the role is shared with, or one to move the role to |
permissions | array of ResourcePermissions | Yes | List of resource permissions grouped by resource server |
AssignmentsRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string (uuid) | ID of the organization unit the assignments are made in or removed from: the role's owner when omitted, or an organization unit the role is shared with | |
assignments | array of AssignmentInput | Yes | List of user and group assignments |
RoleListResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | Number of results that match the listing operation. | |
startIndex | integer | Index of the first element of the page, which will be equal to offset + 1. | |
count | integer | Number of elements in the returned page. | |
roles | array of RoleSummary | ||
links | array of Link |
AssignmentListResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | Number of results that match the listing operation. | |
startIndex | integer | Index of the first element of the page, which will be equal to offset + 1. | |
count | integer | Number of elements in the returned page. | |
assignments | array of Assignment | ||
links | array of Link |
RoleSharingPolicyRequest
Type: any of: any, any
One organization unit's decision about this role. A policy states up to two
sections through this endpoint, and at least one: childUnits for the organization units
beneath the issuer, and otherTreeRoots for the roots of other trees. Each section either
reaches a whole group or names the organization units it reaches, never both.
A role shared with nobody has no policy at all.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
initiatingOuId | string | The organization unit whose decision this is. Omitted means the role's owner. A
unit other than the owner may only issue a policy where the role already reached
it and stopped there, and such a policy may state | |
childUnits | RoleChildUnits | The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
| |
otherTreeRoots | RoleOtherTreeRootsSelected | Named root organization units of other trees, and nothing below them. Owner only. Another tree is reached at its root alone; that root passes the role on within its own tree. The root of the owner's own tree is not another tree and cannot be named. When the owner sits below a root, this additionally requires
| |
version | integer | The policy version the caller believes it is editing. Required on an edit, ignored on a create. |
RoleSharingPolicyUpdateRequest
Type: any of: any, any, any
A replacement for a policy's sections. Whose decision the policy is cannot change, so an
edit names no initiatingOuId. It differs from a create in what it may state: a
policy that already reaches every organization unit, or the root of every other tree, keeps
that reach here.
An edit may not reach wider than the policy already does. A section that reaches a whole group is fixed once the policy exists, so a deployment-wide section can be kept and its exclusions rewritten, but one cannot be introduced by editing a narrower policy into it.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
allUnits | RoleAllUnits | Every organization unit in the deployment, at any depth, including units created later. It
stands alone: a policy that states it states neither A reach not bounded by the issuer's own position in the tree is a deployment decision, so it is written where such decisions are reviewed: a resource file, or a document imported from one. A create through this API may not state it. A policy written that way still reads back through these endpoints, and an edit restates it to rewrite its exclusions. | |
childUnits | RoleChildUnits | The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
| |
otherTreeRoots | RoleOtherTreeRoots | The root organization units of other trees, as a policy carries them. Every shape a create may send, plus the one that only a resource file or an imported document may introduce. An edit sends this shape rather than the create's, because a policy that already reaches the root of every other tree has to be able to restate that to rewrite its exclusions. | |
version | integer | Yes | The policy version the caller believes it is editing. An edit against any other version is refused, so a caller that has not seen the current one cannot overwrite it. |
RoleAllUnits
Type: object
Every organization unit in the deployment, at any depth, including units created later. It
stands alone: a policy that states it states neither childUnits nor otherTreeRoots.
A reach not bounded by the issuer's own position in the tree is a deployment decision, so it is written where such decisions are reviewed: a resource file, or a document imported from one. A create through this API may not state it. A policy written that way still reads back through these endpoints, and an edit restates it to rewrite its exclusions.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
excludedOuIds | array of string | Organization units withheld from the section, each taking everything beneath it out of reach as well. Any organization unit may be excluded. | |
overlayRules | RoleOverlayRules | The terms the organization units a section reaches hold the role on. A role declares one
field, |
RoleChildUnits
Type: one of: RoleChildUnitsAll, RoleChildUnitsSelected
The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
mode.
RoleChildUnitsAll
Type: object
Everything beneath the issuing organization unit, at any depth, including units created later.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
excludedOuIds | array of string | Organization units withheld from the section, each taking everything beneath it out of reach as well. Only organization units directly beneath the issuer may be excluded. | |
overlayRules | RoleOverlayRules | The terms the organization units a section reaches hold the role on. A role declares one
field, |
RoleChildUnitsSelected
Type: object
Named organization units directly beneath the issuer. It takes no excludedOuIds: an
organization unit is withheld by leaving it out of units.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
units | array of RoleChildUnit | Yes | The organization units reached. An organization unit is listed only once in a policy. |
RoleChildUnit
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | Yes | A direct child of the issuing organization unit. |
reach | string | Yes | How far the role carries from the named organization unit. Allowed values: |
overlayRules | RoleOverlayRules | The terms the organization units a section reaches hold the role on. A role declares one
field, |
RoleOtherTreeRoots
Type: one of: RoleOtherTreeRootsSelected, RoleOtherTreeRootsAll
The root organization units of other trees, as a policy carries them. Every shape a create may send, plus the one that only a resource file or an imported document may introduce.
An edit sends this shape rather than the create's, because a policy that already reaches the root of every other tree has to be able to restate that to rewrite its exclusions.
RoleOtherTreeRootsSelected
Type: object
Named root organization units of other trees, and nothing below them. Owner only. Another tree is reached at its root alone; that root passes the role on within its own tree. The root of the owner's own tree is not another tree and cannot be named.
When the owner sits below a root, this additionally requires
resource_sharing.allow_child_ou_cross_tree_sharing.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
units | array of RoleRootUnit | Yes | The root organization units reached. An organization unit is listed only once in a policy. |
RoleOtherTreeRootsAll
Type: object
The root organization unit of every other tree, including trees created later. Only a resource file or an imported document may introduce it, so a create never sends it.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
excludedOuIds | array of string | Root organization units withheld from the section, and with them their trees. | |
overlayRules | RoleOverlayRules | The terms the organization units a section reaches hold the role on. A role declares one
field, |
RoleRootUnit
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | Yes | The root organization unit of another tree. |
overlayRules | RoleOverlayRules | The terms the organization units a section reaches hold the role on. A role declares one
field, |
RoleOverlayRules
Type: object
The terms the organization units a section reaches hold the role on. A role declares one
field, assignments: whether those organization units may assign the role to their own
users and groups. They may unless a policy says otherwise, so a policy names assignments
only to turn them off. A reshare cannot turn back on what the policy it came through
turned off.
1 property
| Name | Type | Required | Description |
|---|---|---|---|
assignments | RoleAssignmentsRule |
RoleAssignmentsRule
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
editable | boolean | Yes | Whether the organization units reached may assign the role. |
RoleSharingPolicy
Type: object
A recorded sharing policy. Its sections come back in the shape a request states them in, so
an edit copies them, with version, into a RoleSharingPolicyUpdateRequest. The other fields
are set by the server and are refused in a request body. A section the policy does not state
is left out.
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | The policy's own identifier. | |
initiatingOuId | string | The organization unit whose decision this policy is. The owning organization unit is not repeated here: it belongs to the role, which this path already names. | |
stage | string |
Allowed values: | |
parentPolicyId | string | The policy that made this one's issuer able to see the role. Empty for an owner-issued policy. | |
isReadOnly | boolean | Indicates if the policy is defined in declarative configuration and cannot be modified. | |
version | integer | Bumped on every edit, and carried back on the next one. | |
allUnits | RoleAllUnits | Every organization unit in the deployment, at any depth, including units created later. It
stands alone: a policy that states it states neither A reach not bounded by the issuer's own position in the tree is a deployment decision, so it is written where such decisions are reviewed: a resource file, or a document imported from one. A create through this API may not state it. A policy written that way still reads back through these endpoints, and an edit restates it to rewrite its exclusions. | |
childUnits | RoleChildUnits | The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
| |
otherTreeRoots | RoleOtherTreeRoots | The root organization units of other trees, as a policy carries them. Every shape a create may send, plus the one that only a resource file or an imported document may introduce. An edit sends this shape rather than the create's, because a policy that already reaches the root of every other tree has to be able to restate that to rewrite its exclusions. |
RoleSharingPolicyListResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | How many policies the role has, not how many this page holds. | |
startIndex | integer | The one-based position of the first policy in this page. | |
count | integer | How many policies this page holds. | |
policies | array of RoleSharingPolicy | ||
links | array of Link | Links to the first, previous, next and last pages, where they exist. |
RoleResolvedOverlay
Type: object
What one organization unit may do with the role.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | ||
isOwnedByOU | boolean | Whether the organization unit owns the role rather than being shared it. | |
visible | boolean | Whether the role is shared with the organization unit, or owned by it. | |
policyIds | array of string | Every policy that contributed, so an answer is traceable to its inputs. | |
rules | object | The effective rule per field. A role declares one field, |
RoleOverlayRule
Type: object
What a reached organization unit may do with one field.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
editable | boolean | ||
value | array of string | ||
allowedValues | array of string | ||
excludedValues | array of string |
Error
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Error code. The prefix identifies the service that produced the error, for example ROL for role management or SAZ for system authorization. |
message | I18nMessage | Yes | Internationalized message with translation key and default value. |
description | I18nMessage | Internationalized message with translation key and default value. |
I18nMessage
Type: object
Internationalized message with translation key and default value.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Translation key for fetching localized message. |
defaultValue | string | Yes | Default message in English (fallback). |
Was this page helpful?