Microsoft 365 OneDrive API poller template
Use this SAM API poller template to monitor user activity and usage statistics for Microsoft 365 OneDrive.
Prerequisites
- Configure OAuth 2.0 Azure credentials with the following scope:
https://graph.microsoft.com/.default
. - Credentials have the following Microsoft Graph permission: Reports.Read.All (Type: Application).
For tips on configuring credentials, see API poller authorization and also Find Microsoft Azure credentials.
Notes
- Default thresholds are not set for this template.
- Data is polled once per day.
- This template is based on the Microsoft Graph API reference (© 2020 Microsoft Corp., available at docs.microsoft.com, obtained on August 21, 2020).
- Here is an API request example:
https://graph.microsoft.com/beta/reports/getOneDriveActivityUserCounts(period='D7')?$format=application/json
Available metric
- Viewed or Edited Usage - User Count
- Synced Usage - User Count
- Shared Internally Usage - User Count
- Shared Externally Usage - User Count