OneDrive usage reports

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

You can get a high-level view of the value you are getting from OneDrive in terms of the total number of files and storage used across all the OneDrive accounts in your organization. You can then drill down to understand the trends of active OneDrive accounts, how many files users have interacted with, and how much storage is used. It also gives you the per OneDrive account details.

Note: For details about different report views and names, see Microsoft 365 reports - OneDrive for Business usage.

Reports

Function CSV return type JSON return type Description
Get account detail Stream Stream Get details about OneDrive usage by account.
Get account counts Stream Stream Get the trend in the number of active OneDrive for Business sites. Any site on which users viewed, modified, uploaded, downloaded, shared, or synced files is considered an active site.
Get file counts Stream Stream Get the total number of files across all sites and how many are active files. A file is considered active if it has been saved, synced, modified, or shared within the specified time period.
Get storage Stream Stream Get the trend on the amount of storage you are using in OneDrive for Business.