Home

Report apps being used in Teams

%3CLINGO-SUB%20id%3D%22lingo-sub-1029388%22%20slang%3D%22en-US%22%3EReport%20apps%20being%20used%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1029388%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20any%20PowerShell%20or%20built-in%20way%20to%20report%20third-party%20apps%20being%20used%20across%20Teams%3F%20E.g.%20can%20we%20produce%20something%20that%20says%20App%20XYZ%20is%20installed%20in%20Team%201%2C%20Team%202%20and%20Team%203.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1029388%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUsage%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1029468%22%20slang%3D%22en-US%22%3ERe%3A%20Report%20apps%20being%20used%20in%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1029468%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F79705%22%20target%3D%22_blank%22%3E%40Gurdev%20Singh%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20there%20is%20no%20such%20a%20built-in%20way%20to%20do%20it%2C%20but%20you%20could%20build%20up%20a%20PowerShell%20script%20and%20utilize%20Microsoft%20Graph%20API%20to%20get%20what%20apps%20are%20installed%20on%20teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%20list%20all%20teams%20using%20Groups%20endpoint.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fteams-list-all-teams%3Fcontext%3Dgraph%252Fapi%252F1.0%26amp%3Bview%3Dgraph-rest-1.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fteams-list-all-teams%3Fcontext%3Dgraph%252Fapi%252F1.0%26amp%3Bview%3Dgraph-rest-1.0%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELoop%20through%20returned%20teams%20and%20list%20all%20apps%20installed%20to%20a%20team%20with%20%22%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2F%26lt%3Bgroup%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2F%3CGROUP%3E%3C%2FGROUP%3E%3C%2FA%3E%20id%26gt%3B%2Fapps.%3C%2FP%3E%3CP%3EIt%20returns%20id%2C%20externalId%2C%20name%2C%20version%20and%20distributionMethod%20of%20all%20apps%2C%20including%20out-of-the-box%20apps.%20distributionMetdod%20tells%20is%20app%20installed%20from%20store%2C%20organizations%20apps%20or%20is%20it%20sideloaded.%3C%2FP%3E%3CP%3EOne%20thing%20to%20notice%20is%20that%203rd%20party%20store%20apps%20do%20not%20have%20externalId%2C%20so%20you%20need%20to%20check%20apps%20from%20store.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20an%20example%20what%20is%20returned%20from%20apps.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3E%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22id%22%3A%20%22ef56c0de-36fc-4ef8-b417-3d82ba9d073c%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22externalId%22%3A%20null%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22name%22%3A%20%22Calendar%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22version%22%3A%20%221.0%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22distributionMethod%22%3A%20%22store%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22id%22%3A%20%22a9ede1c9-23e7-4ff5-b548-937b0ef81d24%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22externalId%22%3A%20%2228ee5fdd-91ac-42a8-aa8c-0126a99e05fe%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22name%22%3A%20%22Onboarding%20App%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22version%22%3A%20%221.0.0%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22distributionMethod%22%3A%20%22organization%22%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22id%22%3A%20%2250fe6799-60e8-4fe2-95cc-2ca28a17e93d%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22externalId%22%3A%20%22de372c3e-40b6-436a-81d1-947db038b542%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22name%22%3A%20%22Budget%20Tracker%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22version%22%3A%20%221.0.0%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22distributionMethod%22%3A%20%22sideloaded%22%0A%20%20%20%20%20%20%20%20%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Gurdev Singh
Contributor

Is there any PowerShell or built-in way to report third-party apps being used across Teams? E.g. can we produce something that says App XYZ is installed in Team 1, Team 2 and Team 3.

1 Reply

@Gurdev Singh 

I think there is no such a built-in way to do it, but you could build up a PowerShell script and utilize Microsoft Graph API to get what apps are installed on teams.

 

First list all teams using Groups endpoint. https://docs.microsoft.com/en-us/graph/teams-list-all-teams?context=graph%2Fapi%2F1.0&view=graph-res...

 

Loop through returned teams and list all apps installed to a team with "https://graph.microsoft.com/v1.0/<group id>/apps.

It returns id, externalId, name, version and distributionMethod of all apps, including out-of-the-box apps. distributionMetdod tells is app installed from store, organizations apps or is it sideloaded.

One thing to notice is that 3rd party store apps do not have externalId, so you need to check apps from store.

 

Here is an example what is returned from apps.

        {
            "id": "ef56c0de-36fc-4ef8-b417-3d82ba9d073c",
            "externalId": null,
            "name": "Calendar",
            "version": "1.0",
            "distributionMethod": "store"
        },
        {
            "id": "a9ede1c9-23e7-4ff5-b548-937b0ef81d24",
            "externalId": "28ee5fdd-91ac-42a8-aa8c-0126a99e05fe",
            "name": "Onboarding App",
            "version": "1.0.0",
            "distributionMethod": "organization"
        },
        {
            "id": "50fe6799-60e8-4fe2-95cc-2ca28a17e93d",
            "externalId": "de372c3e-40b6-436a-81d1-947db038b542",
            "name": "Budget Tracker",
            "version": "1.0.0",
            "distributionMethod": "sideloaded"
        }

 

Related Conversations
Teams error code - 6
damnit95 in Office 365 on
4 Replies
Sharing a Teams Calendar
Michael Krueger in Microsoft Teams on
16 Replies
Microsoft Store App information
R1cardo92 in Security + Identity on
4 Replies
Outlook, PowerPoint, Excel, Word Version 1.0?!
boossy in Discussions on
3 Replies