【发布时间】:2020-06-25 14:23:30
【问题描述】:
我正在与供应商合作,在 Azure AD 中为我们的 Office 365 租户设置自定义应用程序,我被要求使用 Azure AD 图表提供以下实体属性:
extension_xxxxxxxxxxxxxx_sAMAccountName
extension_xxxxxxxxxxxxxx_userPrincipalName
通过阅读 Microsoft 的文档,我了解到 Azure AD 图形资源管理器已被弃用,因此我一直在阅读 Microsoft 的 Graph 文档以检索这些属性。
当我为 https://graph.microsoft.com/v1.0/users/{id|UserPrincipalName} 运行 GET 命令时,我得到以下数据集(将原始值替换为 user 和 xxxx 字符):
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity",
"businessPhones": [],
"displayName": "user",
"givenName": null,
"jobTitle": null,
"mail": null,
"mobilePhone": null,
"officeLocation": null,
"preferredLanguage": null,
"surname": null,
"userPrincipalName": "user@domain.onmicrosoft.com",
"id": "xxxxxxxxxxxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxx"
}
我没有在这些类型的实体属性的文档中找到任何参考,我只是以错误的方式使用 Microsoft Graph,还是我在他们的文档中遗漏了一些明显的东西?
【问题讨论】:
标签: azure-active-directory microsoft-graph-api