Hi @Xie Nash
You are getting outlook token not Graph token, to call the oidc/userinfo
endpoint you should remove the scope: https://outlook.office.com/IMAP.AccessAsUser.All
, https://outlook.office.com/SMTP.Send
.
ie: "scope": "openid profile email User.Read"
.
Another method is keeping your current scopes and call GET https://outlook.office365.com/api/v2.0/me/
to get the signed-in user's information.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.