Access token by Microsoft Azure AD

Hi, I develop ionic application SSO connecting with Microsoft Azure AD.
I want to call Microsoft graph to access user detail, user photo (not from gravatar).
so I see response access token by testing get users in api management.
It look like:

"identities": [
  {
    "user_id": "...",
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSU...",
    "expires_in": "3600",
    "refresh_token": "AQABAAAAAAC5una0EUFgTIF8Ela...",
    "provider": "waad",
    "connection": "...-waad",
    "isSocial": false
  }
],

Can I use this access_token call Microsoft Graph? or another way?

Thank you.

Hey there @chikarurus!

Unfortunately not. The access token you get is only valid for Auth0 and is aimed to be used only with our endpoints. In order to call the Microsoft Graph API you need to grab a token from Microsoft.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.