Office365 用户查询 returns 照片为空

Office365 Users query returns Photo as null

正在尝试使用 Microsoft.Graph 库检索域中的用户列表:

GraphServiceClient graphClient = SDKHelper.GetAuthenticatedClient();
var request = graphClient.Users.Request().Select("businessPhones, displayName, givenName, id, jobTitle, mail, mobilePhone, officeLocation, preferredLanguage, surname, userPrincipalName, photo");
var ListOfUsers = await request.GetAsync();

范围是:

Scope = "openid email profile offline_access User.Read User.ReadWrite User.ReadBasic.All " + graphScopes,

照片字段始终为空。为所有用户检索照片的正确方法是什么?

有一个单独的端点可以为用户获取照片

graphClient.Users[<UserPrincipalName>].Photo.Content.Request()

请参考this link