简体   繁体   English

通过 Microsoft graph 检索用户图像 api

[英]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 .我正在尝试根据 email id 从 microsoft graph API 获取用户的图像。我能够使用https://graph.microsoft.com/v1.0/me/photo/获取登录用户的详细信息$价值

What i need is image of another user based on email id.我需要的是基于 email id 的另一个用户的图像。 Is there a way to accomplish this?有没有办法做到这一点?

Ref: Microsoft Graph API Explorer参考: Microsoft Graph API Explorer

You can use the below api from the graph explorer to get the photo您可以使用以下 api 从图形资源管理器中获取照片

  1. Goto Graph explorer page转到图形资源管理器页面

Microsoft Graph Explorer Microsoft Graph 资源管理器

  1. Paste the below api with email id of the user粘贴下面的 api 和用户的 email id

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

It will retrieve photo of the user.它将检索用户的照片。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM