Skip to content

teams report useractivitycounts

Get the number of Microsoft Teams activities by activity type. The activity types are team chat messages, private chat messages, calls, and meetings.

Usage

teams report useractivitycounts [options]

Options

Option Description
--help output usage information
-p, --period <period> The length of time over which the report is aggregated. Supported values D7|D30|D90|D180
-f, --outputFile [outputFile] Path to the file where the Microsoft Teams activities by activity type report should be stored in
-o, --output [output] Output type. text|json. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Examples

Gets the number of Microsoft Teams activities by activity type for the last week

teams report useractivitycounts --period D7

Gets the number of Microsoft Teams activities by activity type for the last week and exports the report data in the specified path in text format

teams report useractivitycounts --period D7 --output text --outputFile 'C:/report.txt'

Gets the number of Microsoft Teams activities by activity type for the last week and exports the report data in the specified path in json format

teams report useractivitycounts --period D7 --output json --outputFile 'C:/report.json'