Skip to content

Mass Download & Deletion Activity (7 days)

The question it answers: Who downloaded or deleted an unusual number of SharePoint and OneDrive files in one hour in the last 7 days?

Someone downloading hundreds of files in an hour before they leave, or a compromised account deleting whole libraries, shows up as a spike in the audit log. Per user: downloads and deletions over the last 7 days and their busiest single hour.

Where in the appTenant › Compliance & Audit › Mass Download & Deletion
WorkloadCompliance
KindTable · dashboard tile
DataA scan: it runs only when someone presses Run scan (or calls the API’s scan action) and can take minutes. The last result is kept until the next scan.
LicenceMicrosoft Purview Audit (Standard) - included in Microsoft 365 E3 / Business Premium.
Report id (API and MCP)tenant.compliance.mass-file-activity
ColumnKeyType
UserUserPrincipalNameText
Peak hour downloadsPeakHourDownloadsStatus
Peak hour deletionsPeakHourDeletionsText
Peak hourPeakHourDateTime
Downloads (7 d)DownloadsText
Deletions (7 d)DeletionsText
SitesSitesText
Client IPsClientIpsText
Last eventLastEventDateTime
FilterKey (API)On when the page opens
Only users with an unusual hourunusualYes

Licence: Microsoft Purview Audit (Standard) - included in Microsoft 365 E3 / Business Premium.

Application permissions on the IntensiveReports app registration (all permissions):

PermissionAPIWhat it allowsNote
AuditLogsQuery.Read.AllMicrosoft GraphRead audit logs data from all services
Data sources it reads
  • POST /v1.0/security/auditLog/queries (sharePointFileOperation)
  • GET /v1.0/security/auditLog/queries/{id}
  • GET /v1.0/security/auditLog/queries/{id}/records
GET /ir-api/v1/reports/tenant.compliance.mass-file-activity?size=100
GET /ir-api/v1/reports/tenant.compliance.mass-file-activity?filter=unusual
POST /ir-api/v1/reports/tenant.compliance.mass-file-activity/scan

An AI assistant reads it with the MCP tool get_report and the id tenant.compliance.mass-file-activity. The client needs the Run scan grant for Compliance. See Using the API.