【问题标题】:Get AzureAD devices non-interactively - using API以非交互方式获取 AzureAD 设备 - 使用 API
【发布时间】:2023-03-14 03:04:01
【问题描述】:

我需要从需要在没有用户交互的情况下运行的后台应用程序中检索 AzureAD 中的所有设备。

到目前为止,我的研究是空的,使用 Graph API 作为获取实际数据的唯一选项 - 但不支持非交互式场景。 :(

问题

有没有办法/API 以非交互方式获取所有设备?

研究

图形 API:

https://docs.microsoft.com/en-gb/graph/api/intune-devices-manageddevice-get?view=graph-rest-1.0

不支持非交互式脚本,如以上文档截图和以下链接所示:

https://microsoftintune.uservoice.com/forums/291681-ideas/suggestions/18474520-intune-graph-api-should-be-accessible-non-interact

https://social.technet.microsoft.com/Forums/en-US/1636481c-7101-43d4-9f60-e09cdd65b4b0/noninteractive-access-to-intune-api?forum=microsoftintuneprod

MS Graph API - ManagedDevices obtaining Scope

Azure AD 图形 API

https://msdn.microsoft.com/Library/Azure/Ad/Graph/api/api-catalog

MS 不推荐 - 而且似乎也没有办法获取设备。

【问题讨论】:

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


    【解决方案1】:

    您可以使用以下“GET https://graph.microsoft.com/v1.0/devices”。此调用检索在组织中注册的设备对象列表。

    在非交互式场景中也支持此调用。该应用程序将需要以下权限之一。

    应用: Device.Read.All、Directory.Read.All

    您还可以在 MS Graph 中检查设备对象 here 的所有可用操作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-14
      • 1970-01-01
      • 2012-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      相关资源
      最近更新 更多