Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Role Management API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:8090

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
ScopeDescription
systemAccess to system management APIs

clientCredentials flow, token URL https://localhost:8090/oauth2/token

1 scopes
ScopeDescription
systemAccess 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

NameInTypeRequiredDescription
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

filterquerystring

Lists the roles one organization unit owns, followed by the roles shared with it. The only supported filter is ouId eq "<organization unit ID>".

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
namestringYes

Name of the role

descriptionstring

Optional description of the role

ouIdstring (uuid)Yes

ID of the organization unit this role belongs to

permissionsarray of ResourcePermissions

Optional list of initial permissions grouped by resource server

assignmentsarray of AssignmentInput

Optional list of initial user and group assignments

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes
ouIdquerystring (uuid)

Organization unit to read the role as.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request body (required): application/json

Schema: UpdateRoleRequest

4 properties
NameTypeRequiredDescription
namestringYes

Name of the role

descriptionstring

Optional description of the role

ouIdstring (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

permissionsarray of ResourcePermissionsYes

List of resource permissions grouped by resource server

Responses

CodeDescriptionSchema
200

Role updated

Role
400

Bad request

Error
403

Forbidden

Error
404

Role not found

Error
409

Conflict

Error
500

Internal server error

Error

Delete a role by id​

DEL /roles/{id}

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Responses

CodeDescriptionSchema
204

Role deleted

400

Bad request

Error
404

Role not found

Error
409

A user share still mandates the role

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

NameInTypeRequiredDescription
idpathstring (uuid)Yes
typequerystring

Filter assignments by assignee type. When omitted, assignments of all types are returned.

Allowed values: user, group, app, agent

filterquerystring

Lists only the assignments made in one organization unit. The only supported filter is ouId eq "<organization unit ID>".

includequerystring

Optional parameter to include additional information.

  • display - Include display names for users and groups. For users, the display value is resolved from the schema-configured display attribute (systemAttributes.display). Falls back to the user ID if no display attribute is configured, the configured attribute path does not exist in the user's data, or the attribute value is empty. For groups, the group name is used.

Allowed values: display

limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request body (required): application/json

Schema: AssignmentsRequest

2 properties
NameTypeRequiredDescription
ouIdstring (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

assignmentsarray of AssignmentInputYes

List of user and group assignments

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request body (required): application/json

Schema: AssignmentsRequest

2 properties
NameTypeRequiredDescription
ouIdstring (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

assignmentsarray of AssignmentInputYes

List of user and group assignments

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Role ID

limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Role ID

Request body (required): application/json

Schema: RoleSharingPolicyRequest

4 properties
NameTypeRequiredDescription
initiatingOuIdstring

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 only.

childUnitsRoleChildUnits

The organization units beneath the issuer. Exactly one of the two shapes below, chosen by mode.

otherTreeRootsRoleOtherTreeRootsSelected

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.

versioninteger

The policy version the caller believes it is editing. Required on an edit, ignored on a create.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Role ID

policyIdpathstringYes

Sharing policy ID

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Role ID

policyIdpathstringYes

Sharing policy ID

Request body (required): application/json

Schema: RoleSharingPolicyUpdateRequest

4 properties
NameTypeRequiredDescription
allUnitsRoleAllUnits

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.

childUnitsRoleChildUnits

The organization units beneath the issuer. Exactly one of the two shapes below, chosen by mode.

otherTreeRootsRoleOtherTreeRoots

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.

versionintegerYes

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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Role ID

policyIdpathstringYes

Sharing policy ID

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Role ID

ouIdquerystringYes

The organization unit to resolve for.

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
idstring (uuid)Yes

ID of the user, app, agent, or group being assigned

typestringYes

Type of entity being assigned (user, app, agent, or group)

Allowed values: user, group, app, agent

ouIdstring (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

displaystring

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.

isReadOnlyboolean

True on an assignment the organization unit cannot remove because a user share mandates it

AssignmentInput​

Type: object

2 properties
NameTypeRequiredDescription
idstring (uuid)Yes

ID of the user, app, agent, or group being assigned

typestringYes

Type of entity being assigned (user, app, agent, or group)

Allowed values: user, group, app, agent

ResourcePermissions​

Type: object

2 properties
NameTypeRequiredDescription
resourceServerIdstring (uuid)Yes

ID of the resource server these permissions belong to

permissionsarray of stringYes

List of permission strings for this resource server

RoleSummary​

Type: object

7 properties
NameTypeRequiredDescription
idstring (uuid)Yes

Unique identifier for the role

namestringYes

Name of the role

descriptionstring

Optional description of the role

ouIdstring (uuid)Yes

ID of the organization unit this role belongs to

ouHandlestring

Handle of the organization unit this role belongs to

isReadOnlyboolean

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

isOwnedByOUboolean

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
NameTypeRequiredDescription
idstring (uuid)Yes

Unique identifier for the role

namestringYes

Name of the role

descriptionstring

Optional description of the role

ouIdstring (uuid)Yes

ID of the organization unit this role belongs to

ouHandlestring

Handle of the organization unit this role belongs to

isOwnedByOUboolean

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.

permissionsarray of ResourcePermissionsYes

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
NameTypeRequiredDescription
idstring (uuid)Yes

Unique identifier for the role

namestringYes

Name of the role

descriptionstring

Optional description of the role

ouIdstring (uuid)Yes

ID of the organization unit this role belongs to

ouHandlestring

Handle of the organization unit this role belongs to

isOwnedByOUboolean

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.

permissionsarray of ResourcePermissionsYes

List of resource permissions grouped by resource server. Always returned as an array, with an empty array when the role has no permissions.

assignmentsarray of Assignment

List of user and group assignments with display names

CreateRoleRequest​

Type: object

5 properties
NameTypeRequiredDescription
namestringYes

Name of the role

descriptionstring

Optional description of the role

ouIdstring (uuid)Yes

ID of the organization unit this role belongs to

permissionsarray of ResourcePermissions

Optional list of initial permissions grouped by resource server

assignmentsarray of AssignmentInput

Optional list of initial user and group assignments

UpdateRoleRequest​

Type: object

4 properties
NameTypeRequiredDescription
namestringYes

Name of the role

descriptionstring

Optional description of the role

ouIdstring (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

permissionsarray of ResourcePermissionsYes

List of resource permissions grouped by resource server

AssignmentsRequest​

Type: object

2 properties
NameTypeRequiredDescription
ouIdstring (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

assignmentsarray of AssignmentInputYes

List of user and group assignments

RoleListResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger

Number of results that match the listing operation.

startIndexinteger

Index of the first element of the page, which will be equal to offset + 1.

countinteger

Number of elements in the returned page.

rolesarray of RoleSummary
linksarray of Link

AssignmentListResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger

Number of results that match the listing operation.

startIndexinteger

Index of the first element of the page, which will be equal to offset + 1.

countinteger

Number of elements in the returned page.

assignmentsarray of Assignment
linksarray 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
NameTypeRequiredDescription
initiatingOuIdstring

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 only.

childUnitsRoleChildUnits

The organization units beneath the issuer. Exactly one of the two shapes below, chosen by mode.

otherTreeRootsRoleOtherTreeRootsSelected

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.

versioninteger

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
NameTypeRequiredDescription
allUnitsRoleAllUnits

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.

childUnitsRoleChildUnits

The organization units beneath the issuer. Exactly one of the two shapes below, chosen by mode.

otherTreeRootsRoleOtherTreeRoots

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.

versionintegerYes

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
NameTypeRequiredDescription
excludedOuIdsarray of string

Organization units withheld from the section, each taking everything beneath it out of reach as well. Any organization unit may be excluded.

overlayRulesRoleOverlayRules

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.

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
NameTypeRequiredDescription
modestringYes

Allowed values: all

excludedOuIdsarray 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.

overlayRulesRoleOverlayRules

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.

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
NameTypeRequiredDescription
modestringYes

Allowed values: selected

unitsarray of RoleChildUnitYes

The organization units reached. An organization unit is listed only once in a policy.

RoleChildUnit​

Type: object

3 properties
NameTypeRequiredDescription
ouIdstringYes

A direct child of the issuing organization unit.

reachstringYes

How far the role carries from the named organization unit. unit reaches it and nothing below it, which leaves it free to pass the role on itself. subtree reaches it and everything below it at any depth.

Allowed values: unit, subtree

overlayRulesRoleOverlayRules

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.

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
NameTypeRequiredDescription
modestringYes

Allowed values: selected

unitsarray of RoleRootUnitYes

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
NameTypeRequiredDescription
modestringYes

Allowed values: all

excludedOuIdsarray of string

Root organization units withheld from the section, and with them their trees.

overlayRulesRoleOverlayRules

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.

RoleRootUnit​

Type: object

2 properties
NameTypeRequiredDescription
ouIdstringYes

The root organization unit of another tree.

overlayRulesRoleOverlayRules

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.

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
NameTypeRequiredDescription
assignmentsRoleAssignmentsRule

RoleAssignmentsRule​

Type: object

1 property
NameTypeRequiredDescription
editablebooleanYes

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
NameTypeRequiredDescription
idstring

The policy's own identifier.

initiatingOuIdstring

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.

stagestring

share when the owner issued it, reshare when a sharee did.

Allowed values: share, reshare

parentPolicyIdstring

The policy that made this one's issuer able to see the role. Empty for an owner-issued policy.

isReadOnlyboolean

Indicates if the policy is defined in declarative configuration and cannot be modified.

versioninteger

Bumped on every edit, and carried back on the next one.

allUnitsRoleAllUnits

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.

childUnitsRoleChildUnits

The organization units beneath the issuer. Exactly one of the two shapes below, chosen by mode.

otherTreeRootsRoleOtherTreeRoots

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
NameTypeRequiredDescription
totalResultsinteger

How many policies the role has, not how many this page holds.

startIndexinteger

The one-based position of the first policy in this page.

countinteger

How many policies this page holds.

policiesarray of RoleSharingPolicy
linksarray 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
NameTypeRequiredDescription
ouIdstring
isOwnedByOUboolean

Whether the organization unit owns the role rather than being shared it.

visibleboolean

Whether the role is shared with the organization unit, or owned by it.

policyIdsarray of string

Every policy that contributed, so an answer is traceable to its inputs.

rulesobject

The effective rule per field. A role declares one field, assignments, answered whether or not a policy names it.

RoleOverlayRule​

Type: object

What a reached organization unit may do with one field.

4 properties
NameTypeRequiredDescription
editableboolean
valuearray of string
allowedValuesarray of string
excludedValuesarray of string

Type: object

2 properties
NameTypeRequiredDescription
hrefstring
relstring

Error​

Type: object

3 properties
NameTypeRequiredDescription
codestringYes

Error code. The prefix identifies the service that produced the error, for example ROL for role management or SAZ for system authorization.

messageI18nMessageYes

Internationalized message with translation key and default value.

descriptionI18nMessage

Internationalized message with translation key and default value.

I18nMessage​

Type: object

Internationalized message with translation key and default value.

2 properties
NameTypeRequiredDescription
keystringYes

Translation key for fetching localized message.

defaultValuestringYes

Default message in English (fallback).

Was this page helpful?