【发布时间】:2017-06-26 20:52:54
【问题描述】:
我希望能够在 Azure Active Directory 中获取所有用户的 office365 照片。
现在我可以使用 graph SDK 获取当前用户的电子邮件
GraphServiceClient graphClient = SDKHelper.GetAuthenticatedClient();
public async Task<string> GetMyEmailAddress(GraphServiceClient graphClient)
{
User me = await graphClient.Me.Request().Select("mail,userPrincipalName").GetAsync();
return me.Mail ?? me.UserPrincipalName;
}
但我不确定如何将https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/profilephoto_get 中的the getting photos part 集成到代码中。
感谢任何帮助或代码示例!
【问题讨论】:
标签: c# microsoft-graph-api office365api outlook-restapi office365-restapi