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.