How to use CGraph module to read Office 365 usage reports
Hello,
Recently we were asked if CGraph can be used to read Office 365 usage reports, like SharePoint, OneDrive and Outlook activity: https://docs.microsoft.com/en-us/graph/api/resources/report?view=graph-rest-1.0
Yes, CGraph can be used to read these reports with one limitation: only JSON format is currently supported.
Example:
Connect-CGraph Get-CGraphResource reports -Identifier "/microsoft.graph.getTeamsUserActivityUserDetail(period='D180')" -All -AdditionalQueryOptions @{"`$format"="application/json"} -beta
Please sign in to leave a comment.
Comments
1 comment