You are using the Graph Resource Details Endpoint and scopes without defining the API. You will need to use the v2.0 outlook Resource Details Endpoint (ie. https://outlook.office.com/api/v2.0/me
) as well as the outlook scopes (ie. offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send
).
Cheers.