slaveCoder
slaveCoder

Reputation: 537

Retrieving the image of a user through Microsoft graph api

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

Answers (1)

midhun0003
midhun0003

Reputation: 623

You can use the below api from the graph explorer to get the photo

  1. Goto Graph explorer page

Microsoft Graph Explorer

  1. Paste the below api with email id of the user

https://graph.microsoft.com/v1.0/users/<email id>/photo/$value

It will retrieve photo of the user.

Upvotes: 4

Related Questions