【问题标题】:Unable to find Entity Properties找不到实体属性
【发布时间】: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 命令时,我得到以下数据集(将原始值替换为 userxxxx 字符):

{
    "@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


    【解决方案1】:

    要获取用户的分机详情,我们需要在用户查询中添加带有所需分机的$select 语句。

    例如:

    https://graph.microsoft.com/v1.0/me?$select=id,extension_a95b06210ee248ed93fecf16c272a0d5_MyNewProperty
    

    输出:

    【讨论】:

      猜你喜欢
      • 2019-03-22
      • 2011-08-11
      • 1970-01-01
      • 2021-02-16
      • 1970-01-01
      • 1970-01-01
      • 2013-05-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多