[英]Is there any way to get master list of all apps through graph explorer API
在Azure Active Directory管理中心中 ,我可以在“ 企业应用程序”下看到近200个应用程序 。 如何通过Microsoft graph Explorer获得此信息?
我尝试使用以下方法: https://graph.microsoft.com/beta/applications
: https://graph.microsoft.com/beta/applications
,但是它在“应用程序注册”下为我提供了应用程序列表。
如何通过图资源管理器获取企业应用程序下的所有应用程序列表?
Microsoft Graph API
自您在问题中专门询问有关Microsoft Graph API以来,我将首先分享这些内容。
请注意, List ServicePrincipals api仅在Beta端点下可用。 Beta端点中的API可能会更改 。 Microsoft不建议您在生产应用程序中使用它们。 我已经在下一节中共享了替代API。
获取完整列表
https://graph.microsoft.com/beta/servicePrincipals
如果您只需要过滤“应用程序类型”为“企业应用程序”的目录(如Azure门户允许的过滤条件,则如下所示)
https://graph.microsoft.com/beta/servicePrincipals?$filter=tags/any(t:t eq 'WindowsAzureActiveDirectoryIntegratedApp')
Azure AD Graph API
即使在大多数情况下,建议使用更新的Microsoft Graph API,在这种特殊情况下,Microsoft Graph API v1.0仍不支持此功能,因此对于生产应用程序,您应使用Azure AD Graph API。 在此处阅读更多信息Microsoft Graph或Azure AD Graph
完整清单
https://graph.windows.net/myorganization/servicePrincipals
仅过滤到“应用程序类型”为“企业应用程序”的目录(如Azure门户允许)
https://graph.windows.net/myorganization/servicePrincipals?$filter=tags/any(t:t eq 'WindowsAzureActiveDirectoryIntegratedApp')
另外,还可以考虑使用其他查询参数,例如$top
只说出前5名,而$select
select只选择真正需要的字段。 例:
https://graph.microsoft.com/beta/servicePrincipals?$select=appid,appDisplayName&$top=5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.