How to change user id attribute when use saml sso?

Hi all,
Recently we encountered a problem. We used SAML SSO, but found that the user_id in the token was prefixed with samlp|saml-xxxx. We want the user_id to be just pure email without any prefix.
I modified the configuration in the connection and set the user id attribute to http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn. But the result shows that it does not work. The user_id in the passed token still has the prefix. So I want to know, what should I do to achieve this goal?

Hi @xieyujie!

Welcome to the Auth0 Community!

Please see this article that discusses the user_id prefix: Change User ID Used by Auth0 for SAML Connection

Let me know if you have any additional questions after giving that a read :slight_smile:

Thanks,

Mary Beth