How to extract MS Teams user activity report using powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-2210573%22%20slang%3D%22en-US%22%3EHow%20to%20extract%20MS%20Teams%20user%20activity%20report%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2210573%22%20slang%3D%22en-US%22%3E%3CP%3EDears%2C%3C%2FP%3E%3CP%3EI%20need%20to%20create%20a%20schedule%20PowerShell%20script%20that%20get%20from%20Microsoft%20graph%20the%20teams%20user%20activity%20report.%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20check%20this%20post%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EMicrosoft%20Graph%20API%20for%20Teams%20User%20Activity%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Freportroot-getteamsuseractivityuserdetail%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Freportroot-getteamsuseractivityuserdetail%3Fview%3Dgraph-rest...%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHow%20to%20implement%20these%20steps.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECan%20you%20please%20explain%20with%20example.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EOr%20you%20have%20any%20other%20workaround%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you%20in%20advance%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2210573%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2223116%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20extract%20MS%20Teams%20user%20activity%20report%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2223116%22%20slang%3D%22en-US%22%3ESee%20below%20reference%20to%20understand%20how%20Graph%20API%20calls%20can%20be%20made%20from%20PowerShell%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fpowershell%2Fget-started%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fpowershell%2Fget-started%3C%2FA%3E%3CBR%20%2F%3EHope%20it%20helps.%3C%2FLINGO-BODY%3E
Occasional Contributor

Dears,

I need to create a schedule PowerShell script that get from Microsoft graph the teams user activity report.

I check this post:

Microsoft Graph API for Teams User Activity https://docs.microsoft.com/en-us/graph/api/reportroot-getteamsuseractivityuserdetail?view=graph-rest... 

How to implement these steps.

Can you please explain with example.

Or you have any other workaround? 

 

Thank you in advance

1 Reply
See below reference to understand how Graph API calls can be made from PowerShell: https://docs.microsoft.com/en-us/graph/powershell/get-started
Hope it helps.