title: How do I get AAD profile picture URL?
body: <p>In the Azure Portal, under Azure Active Directory / Users, you can find image of the user.
  It's like this <code>https://main.iam.ad.ext.azure.com/api/Images/Users/&lt;xxx&gt;=.jpg?t=123456</code></p>
  
  <p>This <code>&lt;xxx&gt;</code> is kind of base64 encoded string with padding, so maybe you can convert it somehow from the object-id? I tried with no luck.</p>
  
  <p>Is there a way to extract this URL through the Microsoft.Graph?</p>
  
  <p>I tried to use <code>https://graph.microsoft.com/beta/me/photo</code>, but it's an object. And when you use <code>https://graph.microsoft.com/beta/me/photo/$value</code>, it's memory stream.</p>
  
  <p>However, I'd like to use already created URL.</p>