title: I want to get domain details from “Entity” calling Azure API
body: <p>I want to get domain details from “Entity” calling Azure API.</p>
  
  <p>I used : </p>
  
  <blockquote>
    <p><a href="https://login.microsoftonline.com/" rel="nofollow noreferrer">https://login.microsoftonline.com/</a>&lt;--tid-->/oauth2/v2.0/authorize --> For
    authorization
    <a href="https://login.microsoftonline.com/" rel="nofollow noreferrer">https://login.microsoftonline.com/</a>&lt;--tid-->/oauth2/v2.0/token   --> For
    Token</p>
    
    <p><a href="https://graph.microsoft.com/v1.0/me/" rel="nofollow noreferrer">https://graph.microsoft.com/v1.0/me/</a>  --> Using token and api I got userdata.</p>
  </blockquote>
  
  <p>Now I need domain details of perticular user, Please help me. </p>
  
  <p>Here I use curl call to get userdata. 
  My code : </p>
  
  <pre><code>$ch1 = curl_init();
  curl_setopt($ch1 , CURLOPT_RETURNTRANSFER, true);      
  curl_setopt($ch1, CURLOPT_HTTPHEADER, array('Authorization: Bearer '.$access_token));
  curl_setopt($ch1, CURLOPT_URL, 'https://graph.microsoft.com/v1.0/me/');
  $result1 = curl_exec($ch1);
  </code></pre>
  
  <p>I go Json response : </p>
  
  <pre><code>{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity",
    "businessPhones": [],
    "displayName": "&lt;displayName&gt;",
    "givenName": "&lt;givenName&gt;",
    "jobTitle": "&lt;jobTitle&gt;",
    "mail": "&lt;mail_id&gt;",
    "mobilePhone": "&lt;mobilePhone&gt;",
    "preferredLanguage": null,
    "surname": "&lt;surname&gt;",
    "userPrincipalName": "&lt;userPrincipalName&gt;",
    "id": "&lt;some_id&gt;"
  }
  </code></pre>
  
  <p>Is there Any way to get domain details inside this response or I have to call another API for it</p>