SharePoint site usage reports

Namespace: microsoft.graph

You can use the SharePoint site usage reports to gain a high level view of the value you are getting from SharePoint in terms of the total number of files that users store in SharePoint sites, how many files are actively being used, and the storage consumed across all these sites. Then, you can drill into these reports to understand the trends and per site level details for all sites.

Note: For details about different report views and names, see Microsoft 365 reports - SharePoint site usage.

Reports

Function Return Type Description
Get site detail Stream Get details about SharePoint site usage.
Get file counts Stream Get the total number of files across all sites and the number of active files. A file (user or system) is considered active if it has been saved, synced, modified, or shared within the specified time period.
Get site counts Stream Get the trend of total and active site count during the reporting period.
Get storage Stream Get the trend of storage allocated and consumed during the reporting period.
Get pages Stream Get the number of pages viewed across all sites.