klim
1
I want the attribute with the Name=“http://schemas.auth0.com/identities/default/user_id” and Name=“http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn” to be overridden by a different value than event.user.user_id which is returned from the idp
I’ve tried setting event.user.user_id = “random string” but it does not override the attribute. Is this possible?
According to the Auth0 documentation, the user_id attribute is a root attribute of the normalized user profile, which means it cannot be modified. However, you can use account linking to associate multiple user identities with the same user_id.
Alternatively, you can use custom claims to add additional attributes to the user profile, such as the ones you mentioned. Custom claims are namespaced to avoid collisions with standard claims.
I hope this helps you