title: Office 365 API - Azure Active Directory bring user's thumbnail Failed
body: <p>I'm using the following code from this sample : 
  <a href="https://github.com/OfficeDev/Office-365-APIs-Starter-Project-for-Windows" rel="nofollow">here</a>
  to get the user's thumbnail of there's account on office 365 tenant into windows 8.1 project XAML/c#</p>
  
  <pre><code>try
      {
          using (var dssr = await user.ThumbnailPhoto.DownloadAsync())
          {
              var stream = dssr.Stream;
              var buffer = new byte[stream.Length];
              await stream.ReadAsync(buffer, 0, (int) stream.Length);
              ProfileImage = buffer;
          }
      }
      catch (Exception ex)
      {
          Debug.WriteLine(ex);
      }
  </code></pre>
  
  <p><strong>However</strong> each time I try to bring user's thumbnail photo, I get the following error:</p>
  
  <pre><code>"Resource 'thumbnailPhoto' does not exist
             or one of its queried reference-property objects are not present."
  </code></pre>
  
  <p>I'm using an <code>Admin</code> user (Global Admin) in the add connected service and for sign in .</p>
  
  <p>I searched for what they said on : <a href="http://social.msdn.microsoft.com/Forums/sqlserver/en-US/df8a6745-1af8-436c-90c7-1bec59e916dd/azure-ad-graph-get-users-rest-api-call-fails-to-return-user-entity-thumbnailphoto?forum=WindowsAzureAD" rel="nofollow">here</a></p>
  
  <blockquote>
    <p>"and these photos are actually stored in the Exchange mailbox itself rather than thumbnail Photo in Azure AD or your local AD (this may be the key piece you are looking for). So, it is most likely that the photo is stored in exchange and actually replicated or copied to the AAD."</p>
  </blockquote>
  
  <p>but I didn't find any thing useful .</p>
  
  <p>will you please help me </p>