# Get email form SAML response

**URL:** <https://forum.inductiveautomation.com/t/get-email-form-saml-response/29504>\
**Category:** Ignition\
**Created:** [October 29, 2019, 9:18pm UTC](https://forum.inductiveautomation.com/t/get-email-form-saml-response/29504 "2019-10-29T21:18:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [October 29, 2019, 9:18pm UTC](https://forum.inductiveautomation.com/t/get-email-form-saml-response/29504/1 "2019-10-29T21:18:06Z")

</div>

what should the path be to get the email address out of the below SAML response?

here is what does not work  
`/saml2p:Response/saml2:Assertion/saml2:AttributeStatement/saml2:Email/saml2:AttributeValue/text()`

```auto
<samlp:Response>
    <Assertion>
        <AttributeStatement>
            <Attribute Name="Email">
                <AttributeValue>email@domain.com</AttributeValue>
            </Attribute>
        </AttributeStatement>
    </assertion>
</samlp:Response>

```

---

<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:** [October 29, 2019, 10:08pm UTC](https://forum.inductiveautomation.com/t/get-email-form-saml-response/29504/2 "2019-10-29T22:08:24Z")

</div>

Hi @Jonathan -

Try `/Response/Assertion/AttributeStatement/Attribute[@Name='Email']/AttributeValue/text()`

If that doesn’t work, DM me the actual SAML response document.

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [October 29, 2019, 10:25pm UTC](https://forum.inductiveautomation.com/t/get-email-form-saml-response/29504/3 "2019-10-29T22:25:19Z")

</div>

this did the trick

`/saml2p:Response/saml2:Assertion/saml2:AttributeStatement/saml2:Attribute[@Name='Email']/saml2:AttributeValue/text()`
