
CloudA.83875 (Customer) asked a question.
Hi, I retrieve tokens (access_token, id_token and refresh_token) from the response of a POST to the "oauth2/default/v1/token" endpoint (Authorization Code flow) .
I want to retrieve logged user infos (name, email, etc...) but can't find anything from the decoded id_token...
Thank you

Hi there,
Bogdan here from Okta Support.
You need to make a call to your /userinfo endpoint with the access token you obtained. This will yield a response with profile information for the user. I would recommend checking our KB article on tokens and scopes (below) to get more info:
https://developer.okta.com/docs/concepts/api-access-management/#tokens-and-scopes
https://developer.okta.com/docs/reference/api/oidc/#userinfo
Also, you need to make sure that you are including the profile scope in your initial OIDC call to /authorize (https://developer.okta.com/docs/reference/api/oidc/#scopes)
Thank you,
Bogdan Albu ► Tier 2 Support Engineer Okta