How to read SSO token attribute out after sign-in in private page template?

Hi there,

I have configured my private page content with SSO enabled via SAML. (Azure AD B2C), the SAML response will have email, givenname, surname per Azure SAML test page shown below:

Now, in hubspot template for that private content page, I am trying to get those property out. However, I can only get the “email” out via {{request_contact.contact.email}}. See below:

Wondering how could I read other attributes out? is there a HubL function for that?
Thanks

HubSpot doesn’t directly support accessing additional SAML attributes (like givenname or surname) from the SAML response within templates. HubSpot automatically maps the email attribute from the SAML response to the {{ request_contact.contact.email }} variable, which is why you can access it.

HubSpot does not natively have name, surname or givenname as contact properties. Have you created those as custom properties? The internal name should match the attribute name from Azure.

Hi Bortami, No I have not set them up as custom porperties. Wondering other than email, what else attributes are supported by hubspot with SAML?