Forum Discussion
Ability to download MS Teams usage reports using PowerShell or Graph API
Pawel Jarosz Hi, for this I recommend you turn to my friend M365 CLI. This has a few friendly ways of interacting with the Graph, via a command line interface, which can be PowerShell 🙂
https://pnp.github.io/office365-cli/
Examples:
teams report deviceusagedistributionusercounts [options] Get the number of Microsoft Teams unique users by device type
teams report deviceusageusercounts [options] Get the number of Microsoft Teams daily unique users by device type
teams report deviceusageuserdetail [options] Gets information about Microsoft Teams device usage by user
teams report useractivitycounts [options] Get the number of Microsoft Teams activities by activity type. The activity types are team chat messages, private chat messages, calls, and meetings.
teams report useractivityusercounts [options] Get the number of Microsoft Teams users by activity type. The activity types are number of teams chat messages, private chat messages, calls, or meetings.
Or you can go directly and test out some calls at aka.ms/ge permissions permitting
Let me know if you need anything else?
Thanks
Henry