title: Querying AzureAD Graph extension attributes with Microsoft Graph
body: <p>I am in the process of migrating away from Azure AD Graph API to Microsoft Graph since it is now deprecated. Previously it was possible to access extended properties against a user using <code>Microsoft.Azure.ActiveDirectory.GraphClient</code> <code>.GetExtendedProperties();</code> call e.g:</p>
  <pre><code>var client = new ActiveDirectoryClient(serviceRoot, async () =&gt; await GetToken());
  var user = await client.Users[&quot;user id...&quot;].ExecuteAsync();
  var properties = user.GetExtendedProperties();
  </code></pre>
  <p>I need to replicate this with equivalent calls in <code>Microsoft Graph</code>.</p>
  <p>I have looked at the <a href="https://docs.microsoft.com/en-us/graph/extensibility-overview#schema-extensions?WT.mc_id=AZ-MVP-5000174" rel="nofollow noreferrer">schemaExtensions</a> endpoint, e.g:</p>
  <p>GET all extensions:</p>
  <p><code>/v1.0/schemaExtensions</code></p>
  <p>But this doesn't appear to return the same extensions data that the AD Graph Client did.</p>
  <p>GET user with ext:</p>
  <p><code>v1.0/users/[user id]?$expand=extensions&amp;$select=id,extension_[application id]_myExtension,onPremisesExtensionAttributes,displayName,jobTitle,identities</code></p>
  <p>Where <code>extension_[application id]_myExtension</code> is an example extension in the format:</p>
  <p><code>extension_appid_extensionname</code></p>
  <p>And this doesn't return the custom extension data for the user (other properties work fine however).</p>
  <p>How can we migrate extended properties from AD Graph Client to Microsoft Graph?</p>