# Auth0 and Palo Alto Global Protect

**URL:** <https://community.auth0.com/t/auth0-and-palo-alto-global-protect/52641>\
**Category:** Get Help\
**Tags:** settings, auth0\
**Created:** [November 3, 2020, 2:09pm UTC](https://community.auth0.com/t/auth0-and-palo-alto-global-protect/52641 "2020-11-03T14:09:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SP2020](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sp2020/32/14106_2.png) [@SP2020](https://community.auth0.com/u/SP2020)\
**Post date:** [November 3, 2020, 2:09pm UTC](https://community.auth0.com/t/auth0-and-palo-alto-global-protect/52641/1 "2020-11-03T14:09:48Z")

</div>

Hi,  
Quite new to SAML and Auth0 and trying to integrate Auth0 as SAML IdP with Palo Alto Global Protect  
and having 2 issues:

1. the Authentication the Global Protect Portal works fine but the User ID being passed is in a format auth0|349423438493248932 which doesnt work as we use Username or Email Address as the identifier so how can I change this in Auth0?
2. the second part of the authentication to the global protect gateway fails and in the global prtect logs i see invalid gateway credentials auth0|349423438493248932 but i also see the username change to auth0%7c349423438493248932

can anyone help on how to change point 1 and why point 2 is failing? i have specified both URL’s created the SP (Firewall) into the Callback URLs within the application settings but cant figure out what is causing the failure.

Thanks

---

<div class="post-metadata">

**Author:** ![joseantonio.rey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joseantonio.rey/32/14670_2.png) [@joseantonio.rey](https://community.auth0.com/u/joseantonio.rey)\
**Post date:** [November 19, 2020, 3:16am UTC](https://community.auth0.com/t/auth0-and-palo-alto-global-protect/52641/2 "2020-11-19T03:16:58Z")

</div>

Hello, @SP2020! Welcome to the Auth0 Community.

You can find a sample rule here, which tells you how to set the NameID claim: [Customize SAML Assertions](https://auth0.com/docs/protocols/saml-configuration-options/customize-saml-assertions#example-changing-the-saml-token-lifetime-and-use-upn-as-nameid)

You should configure it to your liking.

As for #2, this is because your system is URLEncoding the value.

Let me know if this helps.
