我可以使用 Azure Data Explorer (Kusto) 查询 Microsoft Entra Admin Center 中的数据(例如组)吗?

问题描述 投票:0回答:1

有 UI 来查询/过滤用户/组。我想知道是否有 kusto 连接可以做到这一点。谢谢。

enter image description here

azure-data-explorer usergroups
1个回答
0
投票

正如 AdamMarczakIO 在这篇博客中提到的,无法直接在 KQL 中查询/筛选 Microsoft Entra 组,因为它们不是 Azure 资源。

或者,您可以使用以下 Microsoft Graph API 调用在 Graph Explorer 中查询/筛选用户或组。

用户:

GET https://graph.microsoft.com/v1.0/users/?$filter=startswith(displayName,'sri')&$select=id,displayName,userPrincipalName

enter image description here

团体:

GET https://graph.microsoft.com/v1.0/groups/?$filter=startswith(displayName, 'demo')&$select=id,displayName

enter image description here

参考资料:

列出用户 - Microsoft Graph v1.0

列出组 - Microsoft Graph v1.0

© www.soinside.com 2019 - 2024. All rights reserved.