# How to test Saml assertion

**URL:** <https://community.auth0.com/t/how-to-test-saml-assertion/148542>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [October 3, 2024, 8:23pm UTC](https://community.auth0.com/t/how-to-test-saml-assertion/148542 "2024-10-03T20:23:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganesh.kumaresan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ganesh.kumaresan/32/49201_2.png) [@ganesh.kumaresan](https://community.auth0.com/u/ganesh.kumaresan)\
**Post date:** [October 3, 2024, 8:23pm UTC](https://community.auth0.com/t/how-to-test-saml-assertion/148542/1 "2024-10-03T20:23:01Z")

</div>

Hi Team,

When I add user-metadatda or app-metadata, I can view and test in the user profile (I can verify by authenticaion Profile feature). But, I am doing some saml assertion for users, How can i view and verify if the assertion is added for the user?

I am doing the assertion using api.samlResponse.setAttribute()!

Thanks!

---

<div class="post-metadata">

**Author:** ![petre.timotei](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@petre.timotei](https://community.auth0.com/u/petre.timotei)\
**Post date:** [October 7, 2024, 3:31pm UTC](https://community.auth0.com/t/how-to-test-saml-assertion/148542/3 "2024-10-07T15:31:07Z")

</div>

Hi @ganesh.kumaresan,

Welcome to the Auth0 Community!

Due to security concerns, Auth0 does not log the SAML Request and Response in the dashboard logs. However, Auth0 SAML connections have a ‘debug mode’ toggle that can be enabled. When enabled, Auth0 will generate a log that contains the user profile attributes sent by the SAML Identity Provider (IdP). This can help you verify if the SAML assertion is added for the user.

If you’re still experiencing issues, you can check the Logs and Users pages in the Auth0 Dashboard to see if Auth0 shows a successful login event. If Auth0’s logs don’t show a successful login event, there might be an issue with the SAML Authentication Assertion returned by the IdP, or Auth0 might be unable to consume the assertion.

For more detailed troubleshooting, you may need to capture an HTTP trace of the login sequence and analyze it to check the information that Auth0 sends to the application.

- [SAML Requests and Responses in the Auth0 Log  
 ](https://community.auth0.com/t/122790)
- [Troubleshoot SAML Configurations  
 ](https://auth0.com/docs/troubleshoot/authentication-issues/troubleshoot-saml-configurations)

Also, please let me know if these articles help:

- [How to Map SAML Attributes when Auth0 is the SP in the SAML Enterprise Connection](https://community.auth0.com/t/how-to-map-saml-attributes-when-auth0-is-the-sp-in-the-saml-enterprise-connection/80941)
- [Save SAML Assertion Attribute to user\_metadata or app\_metadata Using Rules And Actions](https://community.auth0.com/t/save-saml-assertion-attribute-to-user-metadata-or-app-metadata-using-rules-and-actions/88617)
- [Map SAML attributes to user\_metadata attributes](https://community.auth0.com/t/map-saml-attributes-to-user-metadata-attributes/106466)

  
Please let me know if this helps and if you have any follow-up questions.

Thanks,  
Timotei

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 21, 2024, 3:31pm UTC](https://community.auth0.com/t/how-to-test-saml-assertion/148542/4 "2024-10-21T15:31:10Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
