I am trying to get all teams where a specific app is installed.
I have this Powershell command: Get-TeamsApp | ogv -PassThru that returns the id of all apps in the tenant. I have also this Powershell command: Get-Team that returns all the properties of all teams in the tenant
But I don't know how to get all teams where the id (specific app) is present in my tenant.
Ive tried with powershell but with no success. Maybe using Graph API? if yes how? what command exactly?
Update : I ve tried this on Graph API:
GET https://graph.microsoft.com/beta/groups?$select=DISPLAYNAME,resourceProvisioningOptions{ "teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/1c4340de-2a85-40e5-8eb0-4f295368978b }
still doesnt work (assuming 1c4340de-2a85-40e5-8eb0-4f295368978b is the app ID)
Thank you for your help