Reputation: 11827
I'd like to use Microsoft Graph API to obtain any person's photo (that is associated to their Microsoft Personal account) based on their email address.
The documentation on MSDN only seems to refer to Microsoft Organizational Accounts. I was able to obtain photos for an Organizational Account, but not for Personal Accounts. How do I do this?
Upvotes: 0
Views: 98
Reputation: 739
It's possible to fetch the photo of the signed in personal account, albeit with some limitations.
The request to get the photo is the same as for org accounts (however, this functionality is only available in /beta): GET https://graph.microsoft.com/beta/me/photo/$value
Two caveats to note:
Upvotes: 1