Forum Discussion

ramki1465's avatar
ramki1465
Brass Contributor
Aug 09, 2022

API for MS Teams Apps in Teams Admin Center

Hello Team

I need to validate  what apps are currently allowed, blocked and submitted in my  Teams tenant.

i know that there is no direct method to export them from Teams Admin centre, however we can do get some information from GRAPH API

 

 I need to export to  file that list all apps with the following 

  • Name
  • Publisher
  • Status
  • Custom app (optional)

With help of 

https://docs.microsoft.com/en-us/graph/api/appcatalogs-list-teamsapps?view=graph-rest-1.0&tabs=http

 

i could manage to get the information except "STATUS" and CUSTOM APP  parameter , on which i could see whether the apps are allowed or BLOCKED

 

https://graph.microsoft.com/v1.0/appCatalogs/teamsApps?$expand=AppDefinitions
https://graph.microsoft.com/v1.0/appCatalogs/teamsApps?$filter=distributionMethod eq '1'
https://graph.microsoft.com/v1.0/appCatalogs/teamsApps?$filter=distributionMethod eq '0'

 

Also, from the graphAPI explorer, how can i export to an file (CSV) or any another options 

 

your timely help would be much appreciated 

Resources