# Access token by Microsoft Azure AD

**URL:** <https://community.auth0.com/t/access-token-by-microsoft-azure-ad/17390>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [October 30, 2018, 9:33am UTC](https://community.auth0.com/t/access-token-by-microsoft-azure-ad/17390 "2018-10-30T09:33:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chikarurus](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chikarurus/32/9463_2.png) [@chikarurus](https://community.auth0.com/u/chikarurus)\
**Post date:** [October 30, 2018, 9:33am UTC](https://community.auth0.com/t/access-token-by-microsoft-azure-ad/17390/1 "2018-10-30T09:33:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 30, 2018, 5:10pm UTC](https://community.auth0.com/t/access-token-by-microsoft-azure-ad/17390/3 "2018-10-30T17:10:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 29, 2018, 5:10pm UTC](https://community.auth0.com/t/access-token-by-microsoft-azure-ad/17390/4 "2018-11-29T17:10:25Z")

</div>

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