Setting Boolean Sync Attribute through SAML Handler | Community
Skip to main content
March 9, 2018
Solved

Setting Boolean Sync Attribute through SAML Handler

  • March 9, 2018
  • 2 replies
  • 2132 views

I need to set a boolean attribute to the user profile when the user logged through SAML. We have other attributes like email=profile/email in Sync Attributes of SAML Authentication Handler config, similarly i want to add isEmployee=profile/isEmployee as Boolean value not as String. isEmployee=profile/isEmployee setting the value as String. Anyone know how to set it as Boolean value in Synchronize Attributes of SAML Authentication Handler? Or SAML supports only syncing String attributes from SAML to user profile? Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by navinkaushal

Hi saravanan.dharmaraj

Defitnitely it can be done if your IDP returns a boolean in response for those attribute in SAML Assertion metadata. It should be something like this:

<saml:Attribute Name="isEmployee"><saml:AttributeValue xsi:type="xs:boolean">false</saml:AttributeValue></saml:Attribute>

Hope this helps!

2 replies

navinkaushal
navinkaushalAccepted solution
Level 4
March 10, 2018

Hi saravanan.dharmaraj

Defitnitely it can be done if your IDP returns a boolean in response for those attribute in SAML Assertion metadata. It should be something like this:

<saml:Attribute Name="isEmployee"><saml:AttributeValue xsi:type="xs:boolean">false</saml:AttributeValue></saml:Attribute>

Hope this helps!

March 13, 2018

Thanks navinkaushal​ for the input. Appreciate it.