Forum Discussion
How to fetch users' authorized 3-rd party apps from office 365 on behalf of organization admin
Hello community,
I have a task to fetch all authorized 3-rd party apps by users of an organization. I looked through Graph API and found a method [https://graph.microsoft.com/v1.0/applications](https://graph.microsoft.com/v1.0/applications) but it does not return authorized apps and it seems like I need another endpoint.
To better understand what I need, I will overview a flow I do and what I expect to get:
Go to the atlassian and click continue with microsoft
Go to the enterprise applications section in the Azure Portal. You will see that a new enterprise application is created automatically
Go to Microsoft Graph and login as an admin of an organization and make the [https://graph.microsoft.com/v1.0/applications?$select=displayName](https://graph.microsoft.com/v1.0/applications?$select=displayName) request. I expect to get the Atlassian application but the actual result is that it does not return my third party apps.
As an admin of an organization, I need to get list of all authorized apps by my users within organization. I would like to monitor apps which are used by my users. How can I fetch this information from API?
- "Application" objects are the ones created by your own tenant. Third-party apps fall under the service principal category, so use the corresponding /servicePrincipals endpoint. If you want to list just the SPs a given user has consented to, use following: https://learn.microsoft.com/en-us/graph/api/user-list-oauth2permissiongrants?view=graph-rest-beta&tabs=http
- "Application" objects are the ones created by your own tenant. Third-party apps fall under the service principal category, so use the corresponding /servicePrincipals endpoint. If you want to list just the SPs a given user has consented to, use following: https://learn.microsoft.com/en-us/graph/api/user-list-oauth2permissiongrants?view=graph-rest-beta&tabs=http