- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
05-17-2023 08:20 AM
This is not a question but rather a "what we did" post. We wanted to allow for role based access to Sets in EPM and needed to pass the EPM-User-Binding claims on a per Active Directory group membership basis. Below is the SAML response code we used. Each of these "SEC-GG-**" groups are also allowed permissions to view this webapp. The respective Set bindings still need to be generated manually in EPM as defined in the documentation.
var groupNames = LoginUser.GroupNames;
var attrArray = new Array();
for (var i=0; i < groupNames.Length; i++)
{
if (groupNames[i].indexOf("SEC-GG-CyberArkEPM-Administrators") != -1) {
trace('User is in: SEC-GG-CyberArkEPM-Administrators');
setAttribute('EPM-User-Binding','[{"R":"00000000-0000-0000-0000-000000000005","S":["All"]},{"R":"00000000-0000-0000-0000-000000000006","S":["All"]}]');
}
else if (groupNames[i].indexOf("SEC-GG-CyberArkEPM-ReadOnly") != -1) {
trace('User is in: SEC-GG-CyberArkEPM-ReadOnly');
setAttribute('EPM-User-Binding','[{"R":"00000000-0000-0000-0000-000000000006","S":["All"]}]');
}
}
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

