# SAML2 IdP Response Data

**URL:** <https://forum.inductiveautomation.com/t/saml2-idp-response-data/88532>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [April 8, 2024, 5:24pm UTC](https://forum.inductiveautomation.com/t/saml2-idp-response-data/88532 "2024-04-08T17:24:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![comaife1](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@comaife1](https://forum.inductiveautomation.com/u/comaife1)\
**Post date:** [April 8, 2024, 5:24pm UTC](https://forum.inductiveautomation.com/t/saml2-idp-response-data/88532/1 "2024-04-08T17:24:14Z")

</div>

Hi, I have a working SAML2 IdP connection. I am interested in extracting the entire XML file returned from the IdP, whereas the attribute mapping features only allow parsing specific XML elements from the response data. How do I extract the entire XML file returned from the IdP in Ignition?

Thank you

---

<div class="post-metadata">

**Author:** ![jspecht](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jspecht/32/6465_2.png) [@jspecht](https://forum.inductiveautomation.com/u/jspecht)\
**Post date:** [April 11, 2024, 11:35pm UTC](https://forum.inductiveautomation.com/t/saml2-idp-response-data/88532/2 "2024-04-11T23:35:16Z")

</div>

Unfortunately there is no clean way to access the raw SAML IdP Response XML. We have a ticket in our backlog to expose the XML as a session property in Perspective.

If you need the full response XML from the user attribute mappers, you might be able to form an XPath expression pointing to the root node of the XML. You could try passing this value to a runScript() expression function to have a script parse the XML as per your requirements. That's the best workaround I can think of for now.

Could you provide more details about your use case and why you need the full response XML?

---

<div class="post-metadata">

**Author:** ![jspecht](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jspecht/32/6465_2.png) [@jspecht](https://forum.inductiveautomation.com/u/jspecht)\
**Post date:** [May 15, 2024, 3:08pm UTC](https://forum.inductiveautomation.com/t/saml2-idp-response-data/88532/3 "2024-05-15T15:08:08Z")

</div>

The SAML Response XML is now available as a Perspective session prop starting with version `8.1.41-SNAPSHOT-b20240514`

See: [Nightly 8.1 Changelogs - 2024 - #82 by system](https://forum.inductiveautomation.com/t/nightly-8-1-changelogs-2024/83608/82)

Hopefully this satisfies your use case.

---

<div class="post-metadata">

**Author:** ![comaife1](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@comaife1](https://forum.inductiveautomation.com/u/comaife1)\
**Post date:** [May 23, 2024, 2:27pm UTC](https://forum.inductiveautomation.com/t/saml2-idp-response-data/88532/4 "2024-05-23T14:27:35Z")

</div>

Thanks for the update. I'll let you know when I complete my testing of the new version.

---

<div class="post-metadata">

**Author:** ![cross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cross/32/76508_2.png) [@cross](https://forum.inductiveautomation.com/u/cross)\
**Post date:** [June 20, 2024, 5:56pm UTC](https://forum.inductiveautomation.com/t/saml2-idp-response-data/88532/5 "2024-06-20T17:56:20Z")

</div>

This has been resolved with Ignition version 8.1.42, released today
