Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Setting Boolean Sync Attribute through SAML Handler

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Level 4

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!

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

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!