Idira Identity Dynamic Role - blank Additional Attribute
87
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 15:51 PM
Objective
This article will walk through the steps for creating a Dynamic Role for users that has an Additional Attribute that tis blank. Roles can be used for assigning application access, MFA policies, and Idira policy settings.
Environment
21.1;21.2;21.3;21.4;21.5;21.6;21.7;21.8;21.9;21.10;21.11;21.12;22.1;22.2;22.3;22.4;22.5;22.6;22.8;22.9;22.10;22.11;22.12;23.1;23.3;23.2;23.4;23.5;23.6 Identity App Access Service
Procedure
This Dynamic Role will identify users that has not configured an Additional Attribute. Additional Attributes are custom user attributes you can create in CyberArk https://docs.cyberark.com/Product-Doc/OnlineHelp/Idaptive/Latest/en/Content/CoreServices/UsersRoles/AttributesAddDefine.htm
Use case: This was used for automatically assigning a policy to users that have not configured an attribute value such as their mobile number for SMS, so they will not be prompted for MFA. Since all users have email, the setting "Allow users without a valid authentication factor to log in" won't take effect if the customer does not want to use/allow email for MFA.
To create this Dynamic Role:1. In the Idira Admin Portal, go to CoreServices > Roles and click the Add Role button.
2. Enter a name for the Role, such as "Users with no mobile number".
3. Click on the pulldown list under Role Type and select Dynamic. Click Save.
4. Edit the Role and go to Members.
5. Enter the following script into the Custom Logic field. Replace "Personal_mobile" with the name of your Additional Attribute. Click Save.
trace('Looking for property: Personal_mobile');
if(User.Properties.Has('Personal_mobile')) {
return false;
}
return true;