【问题标题】:Microsoft Graph - Can't get users Windows AD groupsMicrosoft Graph - 无法获取用户 Windows AD 组
【发布时间】:2018-05-04 04:01:01
【问题描述】:

当我使用时:

string graphRequest = $"{graphResourceUri}/me/memberOf?api-version=1.6";

我得到一个空数组,因为我的登录用户不是任何 Azure 组的成员(我假设)。

我想要的是获取此用户所属的 Windows 域 Active Directory 组的列表。有没有办法找回这个?我不关心 Azure 组。

【问题讨论】:

    标签: azure-active-directory azure-ad-graph-api


    【解决方案1】:

    我发现这是因为我们没有在 Active Directory 和 Azure 之间同步任何组,我们只同步了用户。现在同步必要的 AD 组后,当我在 Azure 中查询用户的组成员时,它就会显示出来。

    【讨论】:

      猜你喜欢
      • 2021-07-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多