Idira Identity - Dynamic Roles by OU

Idira Identity - Dynamic Roles by OU

83
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:03 PM


Objective


This article will walk through the steps for creating a Roles based in an Active Directory OU. Roles can be used for assigning application access, MFA policies, and Idira policy settings.

Environment


22.1;22.2;22.3;22.4;22.5;22.6;22.8 Identity App Access Service

Procedure


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 the Active Directory OU that the Role will map to.
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 and customize the red text with the name of the desired Active Directory OU that you want to map the Role to. Click Save.
DN = User.Properties.Properties['distinguishedName'];
trace('User: '+ DN);
result = DN.search(/OU=Windows Admins/i);
trace ('Results are in: '+ result);
if (result > 0) { return true;}
else {
    return false; 
}

Click the Test User button and select a user to verify if the script is performing as intended.
 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001HMzCAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail