Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-9387: How can an Administrator filter Active Directory groups for a SAML application to only show a specific group in the attribute?

Centrify Identity Service, App Edition ,   Centrify Identity Service, App Plus ,   Centrify Privilege Service ,  

10 November,17 at 06:02 PM

Question: 

How can an Administrator filter Active Directory groups for a SAML application to only show a specific group in the attribute?



Answer:

When creating a custom SAML application, an Administrator can filter the results for groups that are returned when using the setFilteredAttributeArray attribute.

Use a Regex expression as outlined here:  https://technet.microsoft.com/en-us/library/hh440535(v=sc.12).aspx
(Link provided as a courtesy and subject to change)



Example: 

In order to have a SAML assertion return the Active Directory group value "ExampleSecurityGroup" in an attribute, an Administrator would add the following value to the Advanced section of the SAML application.

setFilteredAttributeArray('Groups', LoginUser.GroupNames, "ExampleSecurityGroup");

If the user is a member of this Security Group that contains this name, then the value 'ExampleSecurityGroup' will be passed in the assertion as an attribute value called "Groups".

To match the EXACT value for "ExampleSecurityGroup" use the following Regex expression:

setFilteredAttributeArray('Groups', LoginUser.GroupNames, "^ExampleSecurityGroup$"); 

NOTE:  If the value is NOT present, a null value is passed in the Assertion for the 'Groups' variable
 

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.