title: Get all the users from multi-tenant AD Application using graph API
body: <p>I'm trying to get all the users for a multi-tenant application using the graph API. For the purpose, I generated the access token using the request:</p>
  
  <pre><code>POST https://login.microsoftonline.com/common/oauth2/v2.0/token HTTP/1.1
  Host: login.microsoftonline.com
  Content-Type: application/x-www-form-urlencoded
  
  client_id=535fb089-9ff3-47b6-9bfb-4f1264799865
  &amp;scope=https%3A%2F%2Fgraph.microsoft.com%2F.default
  &amp;client_secret=qWgdYAmab0YSkuL1qKv5bPX
  &amp;grant_type=client_credentials
  </code></pre>
  
  <p><strong>Note:</strong> Please note that, in above request, I used <code>common</code> in place of <code>{tenantID}</code>. That was just a hit and try as the same was suggested for adminConsent in the <a href="https://docs.microsoft.com/en-us/graph/auth-v2-service?toc=.%2Fref%2Ftoc.json&amp;view=graph-rest-1.0#3-get-administrator-consent" rel="nofollow noreferrer">doc</a>.</p>
  
  <p>By using the above generated access token, I requested the user API and got the following error</p>
  
  <pre><code>{
      "error": {
          "code": "Authorization_IdentityNotFound",
          "message": "The identity of the calling application could not be established.",
          "innerError": {
              "request-id": "56141b7d-dd5e-44b1-9395-cd15d02b52de",
              "date": "2019-06-17T12:42:19"
          }
      }
  }
  </code></pre>
  
  <p>And when I generate the token using tenant ID, it only returns the users of one active directory.</p>
  
  <p>Can anyone suggest, where I'm going wrong?</p>