Transformation Engine - Extract Managers name from DN string

    Applies to:
  • SecureAuth Identity Platform
  • Legacy SecureAuth IdP
Deployment model:
  • Cloud
  • Hybrid
  • On Premises
  • Version Affected:  All


    In Active Directory, a Users Manager is stored as a distinguished name. 

    Eg: CN=Manager Name,OU=IT,OU=Users,OU=York,DC=Example,DC=com

    If you wish to include the Managers name in your Saml assertion, just the name and not the whole DN makes more sense and this KB will show you how to exact that name from the DN


    Active Directory standards



    1. Choose an AuxID to use for the profile field mapping. In my example, I am using AuxID3.

    2. On the Post Auth Tab, enable the Transformation Engine and edit it

    3. Edit the AuxID3 section of the transformation engine code. 

    <xsl:value-of select="substring-after(substring-before(user/AuxID3, ','),'CN=')"/>


    4. Save the changes and test.


    An example XSLT is attached to this KB Article. 


    SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.

    Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.

    0 out of 0 found this helpful



    Please sign in to leave a comment.