如何使用Graph API获取电话号码

问题描述 投票:0回答:1

我无法从https://graph.microsoft.com/v1.0/me获取任何用户电话号码

我收到电话号码null - 即使我的个人资料与电话号码相关联

{
  "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity",
  "displayName": "random",
  "surname": "name",
  "givenName": "name",
  "id": "xbxbxbbx",
  "userPrincipalName": "[email protected]",
  "businessPhones": [],
  "jobTitle": null,
  "mail": null,
  "mobilePhone": null,
  "officeLocation": null,
  "preferredLanguage": null
}
json microsoft-graph
1个回答
0
投票

个人Microsoft帐户(MSA)无法使用电话号码。他们只返回工作/学校帐户(AAD)。

© www.soinside.com 2019 - 2024. All rights reserved.