How to override sub in ID token to contain a custom field instead of user_id
Sep 10, 2025
Overview
Need to confirm whether this restriction still applies to the latest release of Auth0 private instance?
Solution
You could however add required custom claim to id token using actions, please see the link below:
https://auth0.com/docs/get-started/apis/scopes/sample-use-cases-scopes-and-claims#add-custom-claims-to-a-token