Auth0 Home Blog Docs

Retrieve user info post social connection signup



When enabling users to login via social identity providers, we also wish to store some of the user information(at least name) of the newly created user, in our database for future reference. Is there a way to do that?

As the access_token has no information of that sort, do we need to retrieve the user info using get user management API call?
I also figured out that on setting the scope as openid, profile and not setting any audience, we can get a JWT id_token which contains all the user information.

But since we are using the tokens for authenticating users to access our API, we need to pass the audience claim, and thus the profile information is missing from the token.