尝试使用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,
照片字段始终为空。检索所有用户的照片的正确方法是什么?
答案 0 :(得分:0)