Idira Identity - Dynamic Roles by OU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Workforce Identity Articles
1 min read
L4 Transporter
No ratings
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.

Steps

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.
 
Rate this article:
  • 1607 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎11-05-2026 12:08 PM
Updated by: