Skip to main content
Skip table of contents

Role Assignment Policies Widget

Definition

The Role Assignment Policies Widget allows to:

  • configure and manage Role Assignments Policies for a Role.

  • edit the dimensions mapping.

This way allows to assign a Role to several Identities at the same time.

Edit mode

Read mode

Tips

To access the Role Assignment Policies Widget, you must configure the Widget on a Feature with an object kind set to ROLE.

Use

  • When the Role Assignment Policies Widget is configured in an update feature, you can create, update or delete a Role Assignment Policy on a Role.

  • When the Role Assignment Policies Widget is configured in a read feature, you can view a Role Assignment Policy on a Role.

Create and update a Role Assignment Policy

You can create a Role Assignment Policy on a Role by clicking on the "Add Policy" button.

Capture d'écran 2024-02-08 103311-20240208-093419.png

You can update a Role Assignment Policy on a Role by clicking on the "Edit" button. 

Capture d'écran 2024-02-08 103016-20240208-093205.png

On each case, a pop-up opens with a form with the following values :

Property name

Type

Mandatory

Description

name

String

YES

The Role Assignment Policy name.

description

String

NO

Used to describe the Role Assignment Policy that will be configured.

status

Enum

YES

Used to define the status of the Role Assignment Policy.

Values : APPLIED, REVOKED or DELETED

mode

Enum

YES

Used to define the mode of the Role Assignment Policy.

Values :EDIT, STRICTor INIT

The choice of the mode will affect the assignment and removal of Roles to/from an Identity.

provisioningEnabled

Boolean

YES

Used to indicate whether or not provisioning of the Roles through this policy is enabled.

When disabled, Roles will not be provisioned with this policy, even if a new matching Identity is found.

deprovisioningEnabled

Boolean

YES

Used to indicate whether or not deprovisioning (removal) of the Roles through this policy is enabled.

When disabled, Roles already assigned with this policy will not be deprovisioned, even if an existing Identity is found as not matching anymore.

scope

-

YES

The scope determines which Identities match this policy.

Dimensions mapping

This part allows to define the dimensions mapping on the Role Assignment Policy.

The dimension mapping must be configured if a dimension is mandatory (a red star is displayed next to it).

A dimension mapping can be configured as following:

Mapping type

Value type

Description

No value

N/A

This type is available only if the dimension is not mandatory.

Value

Dimension type

The dimension value is explicitly set in the mapping.

Expression

Groovy rule

When configured as an "expression" Dimension Mapping, the value is computed with a provided groovy expression that can make use of any of the following values:

  • one of the other Dimensions value

  • one of the Role's Attribute value

  • one of the Identity's Attribute value

Delete a Role Assignment Policy

You can delete a Role Assignment Policy on a Role by clicking on the "Delete" button. 

This can only be done in Edit mode, in a Update feature.

Capture d'écran 2024-02-08 104137-20240208-094159.png

Read a Role Assignment Policy

You can consult a Role Assignment Policy on a Role by clicking on the "View" button.

This can only be done in View mode, in a Read feature.

Capture d'écran 2024-02-08 103859-20240208-094008.png

Configuration

Properties

If no override is provided, the edit widget will simply display empty fields for all elements in the form. It is possible to preset some advanced fields by overriding the configuration and providing a custom editor.

Example

Role Assignment Policy Edit

Default, no presets
XML
<widget id="roleAssignmentPolicy" xsi:type="ctdbum:AttributeEditorWidgetType">
	<hidden>false</hidden>
    <config>
    	<label></label>
        <lockedInUi>false</lockedInUi>
        <mode>READ_WRITE</mode>
        <multiValued>false</multiValued>
        <override>false</override>
    </config>
    <attributeId>assignmentPolicies</attributeId>
</widget>
Preset the advanced field
XML
<widget id="roleAssignmentPolicy" xsi:type="ctdbum:AttributeEditorWidgetType">
	<hidden>false</hidden>
    <config>
        <editor>
		   <editWidget xsi:type="ctdbum:RoleAssignmentPoliciesEditWidgetType">
			  <hidden>false</hidden>
			  <config>
				 <mode>STRICT</mode>
				 <status>APPLIED</status>
				 <provisioningEnabled>true</provisioningEnabled>
				 <deprovisioningEnabled>true</deprovisioningEnabled>
			  </config>
		   </editWidget>
		</editor>
    	<label></label>
        <lockedInUi>false</lockedInUi>
        <mode>READ_WRITE</mode>
        <multiValued>false</multiValued>
        <override>true</override>
    </config>
    <attributeId>assignmentPolicies</attributeId>
</widget>

Role Assignment Policy Read

CODE
<widget id="roleAssignmentPolicy" xsi:type="ctdbum:AttributeEditorWidgetType">
	<hidden>false</hidden>
    <config>
    	<label></label>
        <lockedInUi>false</lockedInUi>
        <mode>READ</mode>
        <multiValued>false</multiValued>
        <override>false</override>
    </config>
    <attributeId>assignmentPolicies</attributeId>
</widget>

Read Next

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.