Reputation: 537
I am trying to fetch the image of a user based on email id from microsoft graph API. I am able to get the details of the logged in user using https://graph.microsoft.com/v1.0/me/photo/$value .
What i need is image of another user based on email id. Is there a way to accomplish this?
Ref: Microsoft Graph API Explorer
Upvotes: 5
Views: 8090
Reputation: 623
You can use the below api from the graph explorer to get the photo
https://graph.microsoft.com/v1.0/users/<email id>/photo/$value
It will retrieve photo of the user.
Upvotes: 4