在Azure Active Directory管理中心中,我可以看到企业应用程序下的将近200个应用程序。如何通过Microsoft图形资源管理器获得此信息?
我试过这样做:https://graph.microsoft.com/beta/applications
,但它给了我应用程序注册下的应用程序列表。
如何通过图形资源管理器获得企业应用程序下的所有应用程序列表?
发布于 2019-04-09 17:22:11
Microsoft
我首先分享这些信息,因为您在问题中专门询问了Microsoft。
请注意,列表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图API
尽管在大多数情况下建议使用更新的Microsoft Graph,但这种特殊情况使得Microsoft Graph v1.0还不支持此功能,因此对于生产应用程序,您应该使用Azure AD Graph。在这里阅读更多信息,Microsoft图或Azure AD图
完整列表
https://graph.windows.net/myorganization/servicePrincipals
过滤到只有那些“应用程序类型”是“企业应用程序”,如Azure门户允许
https://graph.windows.net/myorganization/servicePrincipals?$filter=tags/any(t:t eq 'WindowsAzureActiveDirectoryIntegratedApp')
另外,还可以考虑使用其他查询参数(如$top
)只获得top 5,而$select
只选择真正需要的字段。示例:
https://graph.microsoft.com/beta/servicePrincipals?$select=appid,appDisplayName&$top=5
https://stackoverflow.com/questions/55591893
复制相似问题