有什么方法可以通过图资源管理器API获取所有应用程序的主列表 [英] Is there any way to get master list of all apps through graph explorer API

查看:40
本文介绍了有什么方法可以通过图资源管理器API获取所有应用程序的主列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Azure Active Directory管理中心中,我可以在 Enterprise Application 下看到近200个应用程序.如何通过 Microsoft图形资源管理器获得此信息?

我尝试了以下操作: https://graph.microsoft.com/beta/applications ,但是它在应用程序注册下为我提供了应用程序列表.

>

如何通过图资源管理器获取企业应用程序下的所有应用程序列表?

解决方案

Microsoft Graph API

自您在问题中专门询问有关Microsoft Graph API以来,我将首先分享这些内容.

请注意,

完整列表

 <代码> https://graph.windows.net/myorganization/servicePrincipals 

仅过滤到应用程序类型"为企业应用程序"(如Azure门户允许)的那些

 <代码> https://graph.windows.net/myorganization/servicePrincipals?$filter=tags/any(t:t eq'WindowsAzureActiveDirectoryIntegratedApp') 


另一方面,还可以考虑使用其他查询参数,例如 $ top 仅获得前5名,而 $ select 仅选择真正需要的字段.示例:

  https://graph.microsoft.com/beta/servicePrincipals?$select=appid,appDisplayName&$top=5 

In Azure Active Directory Admin Center, I can see almost 200 application under Enterprise Application. How can I get this through Microsoft graph Explorer?

I tried with this: https://graph.microsoft.com/beta/applications, but it gave me the list of apps under App Registration.

How can I get all the app list under enterprise application through graph explorer?

解决方案

Microsoft Graph API

I'm sharing these first since you asked specifically about Microsoft Graph APIs in your question.

Please note that List ServicePrincipals api is only available under Beta endpoint. APIs in the beta endpoint are subject to change. Microsoft does NOT recommend that you use them in your production apps. I've shared the alternative API's in the next section.

To get a complete list

https://graph.microsoft.com/beta/servicePrincipals

In case you need to filter down to only those where "Application Type" is "Enterprise Applications" like Azure portal allows (screenshot below)

https://graph.microsoft.com/beta/servicePrincipals?$filter=tags/any(t:t eq 'WindowsAzureActiveDirectoryIntegratedApp')

Azure AD Graph API

Even though in most cases it's advised to use the newer Microsoft Graph API, this particular case is such that Microsoft Graph API v1.0 doesn't support this functionality yet, so for production applications you should make use of Azure AD Graph API. Read here for more info Microsoft Graph or Azure AD Graph

Complete List

https://graph.windows.net/myorganization/servicePrincipals

Filtered down to only those where "Application Type" is "Enterprise Applications" like Azure portal allows

https://graph.windows.net/myorganization/servicePrincipals?$filter=tags/any(t:t eq 'WindowsAzureActiveDirectoryIntegratedApp')


On a side note, also consider using other query parameters like $top to get only say top 5 and $select to select only those fields which are really needed. Example:

https://graph.microsoft.com/beta/servicePrincipals?$select=appid,appDisplayName&$top=5

这篇关于有什么方法可以通过图资源管理器API获取所有应用程序的主列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆