【问题标题】:Microsoft Graph API: Getting the users who are assigned to a licenceMicrosoft Graph API:获取分配给许可证的用户
【发布时间】:2020-10-27 12:59:36
【问题描述】:

我正在尝试通过 microsoft graph API 为用户分配许可证。很像天蓝色

现在感谢 chrome devtools,我发现调用以下 api 来获取此信息 https://main.iam.ad.ext.azure.com/api/AccountSkus/UserAssignments

不幸的是,尝试访问此 api 令人费解,绝对不适合生产

我想知道是否可以通过图形 api 完成类似的事情。

【问题讨论】:

    标签: azure-active-directory microsoft-graph-api office365api


    【解决方案1】:
    https://graph.microsoft.com/beta/users?$select=id,displayName,assignedLicenses,assignedPlans
    

    您可以通过提供 LastSignInDateTime 和 SKU 使用以下查询来获取特定分配许可证 SKU 的用户

      https://graph.microsoft.com/beta/users?$filter=signInActivity/lastSignInDateTime le 2020-08-01T00:00:00Z&assignedLicenses/any(x:x/skuId eq xxx7a907fd6c235)&$select=displayname
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多