SOLVED

How to fetch users' authorized 3-rd party apps from office 365 on behalf of organization admin

Copper Contributor

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:

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?

1 Reply
best response confirmed by vladislav2495 (Copper Contributor)
Solution
"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&ta...
1 best response

Accepted Solutions
best response confirmed by vladislav2495 (Copper Contributor)
Solution
"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&ta...

View solution in original post