Is it possible to store user’s address and phone_number in auth0 user profile as the response shows that we can fetch address and phone_number from the user’s profile User Profiles. however the create user api in management api doesn’t accpet address and phone_number in the body of the request.
Concerning the claims that can be added to an OpenId token such as user’s address and phone_number in your case, the rule of thumb is to put them within the user_metadata section or the app_metadata.
The reason is that these “additional” claims are considered as custom claims and these ones can collide with the existing default claims which are at the root level.
Maybe your error is coming from the fact that the set of default existing claims cannot be extended.
What I’m doing about the claims I want to add to an OpenID token is to put them in:
user_metadata for the claims which can be modified by the user such as phone number, preferred social media, etc.
app_metadata for the claims which cannot be modified by the user such as the user group and so on.
You should give a try to this solution to see if this one suits your needs.