Hi Auth0 Community
We’re using a custom database script to return user information.
We have created an api and added relevant permissions
When we are calling the /authorize endpoint, we are including the following scopes:
openid, profile, read:customer, update:customer in the scope query parameter and setting the audience query parameter to the audience value of the api.
The fact I have added the profile scope will give me access to name, nickname and picture in the ID token. If the JSON I return to Auth0, from the custom database script, has nickname and picture as blank or null, Auth0 is setting the nickname to the value of name and creating an picture based on the first characters of the firstname and lastname in the name field.
I only want to display the name attribute. Is this possible?
(I appreciate I could add a field to the app_metadata add create a custom claim with a namespace, using an action script in the Login flow to add the custom claim to the ID Token)