Jun 29 2020 11:52 PM
Hey everyone,
Is there a possibility to download usage reports leveraging PowerShell or Graph API?
Cheers,
J
Jun 30 2020 01:59 AM
@Pawel Jarosz yes you can! Please read my blog post about this:
https://robertschouten.com/2019/08/27/microsoft-teams-usage-and-insights/
It contains links to scripts from Microsoft FastTrack and info and guidance how to use them.
Kind regards,
Robert Schouten
Jun 30 2020 02:03 AM
@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