1. Resources
  2. Detection sources
  3. FileDownloaded

FileDownloaded: A file was downloaded from a SharePoint site or a OneDrive

Recorded each time a user downloads a document from a SharePoint site or a OneDrive, one record per file. The detection rule counts how many different files one account downloads in an hour.

Log source
Microsoft 365 unified audit log (SharePoint and OneDrive)
Detection value
Supporting
Volume
High (estimate)
Last updated
Log
Microsoft 365 unified audit log (SharePoint and OneDrive) (Microsoft 365 unified audit log (SharePoint and OneDrive), on by default)
Service
Microsoft 365 unified audit log (SharePoint and OneDrive)
Operation
FileDownloaded
Detects
3 attacks (1 rule · 2 detection logic)
MITRE ATT&CK
4 techniques in 4 tactics
Threat groups
13 groups that MITRE ATT&CK records using these techniques
Fields the rules read
OperationUserIdObjectId

When it is written

SharePoint writes a FileDownloaded file operation record when a user downloads a document from a site, which includes a user's OneDrive (Workload is then OneDrive). ObjectId holds the full path of the file; Microsoft documents that SiteUrl, SourceRelativeUrl and SourceFileName together give the same path. UserId is the account, and ClientIP and UserAgent say where the download came from as the client reports it.

Other ways to get a file write other operations: the OneDrive sync app writes FileSyncDownloadedFull for each file it copies to a computer, and opening a file in the browser writes FileAccessed or FilePreviewed. Viva Engage writes an operation of the same name for its own files. When an application with SharePoint app-only access acts for a user or a service, UserId is app@sharepoint.

Microsoft does not document a sampling or deduplication rule for this operation, unlike FileAccessed and FileModified. Where the unmanaged devices policy limits access to web-only, users on unmanaged devices cannot download files at all.

How to turn it on

Microsoft 365 unified audit log (SharePoint and OneDrive) records FileDownloaded calls to Microsoft 365 unified audit log (SharePoint and OneDrive) without any setup. Vendor documentation

SharePoint and OneDrive activity is recorded in the Microsoft 365 unified audit log by Microsoft Purview Audit (Standard), which is on by default for most organizations. Microsoft names two exceptions where auditing must be turned on by hand: tenants with Business Basic, Business Standard or Business Premium licences, and unmanaged tenants on enterprise trials. Check UnifiedAuditLogIngestionEnabled in Exchange Online PowerShell (in Security & Compliance PowerShell the property always reads False). After auditing is turned on, records can take several hours to become searchable.

  • Retention follows the licence of the user who performed the activity: 180 days with Audit (Standard) (90 days for records created before 17 October 2023). With Audit (Premium) (E5, or an E5 Compliance or eDiscovery and Audit add-on) a default policy keeps SharePoint and OneDrive records one year; records of users without such a licence stay 180 days. Ten years needs a separate add-on licence and a retention policy.
  • Collection: the Office 365 Management Activity API publishes SharePoint and OneDrive records in the Audit.SharePoint content type. A subscription has to be started first (the first content can take up to 12 hours), content can be listed at most 7 days back, and records do not arrive in the order they happened. Microsoft Sentinel's Microsoft 365 data connector with SharePoint selected writes them to the OfficeActivity table.
  • Delay: Microsoft guarantees no delivery time. For SharePoint and OneDrive, records are typically available 60 to 90 minutes after the activity.
  • Turning auditing off (Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $false) also stops the Management Activity API and Sentinel collection; the change is itself recorded as a Set-AdminAuditLogConfig record in the Exchange admin records.
Check that the unified audit log is on (read only, Exchange Online PowerShell)
Get-AdminAuditLogConfig | Format-List UnifiedAuditLogIngestionEnabled
Based on vendor documentation.
List custom audit log retention policies (read only, Security & Compliance PowerShell; the default policy is not shown)
Get-UnifiedAuditLogRetentionPolicy | Sort-Object -Property Priority -Descending | Format-List Priority,Name,RecordTypes,Operations,UserIds,RetentionDuration
Based on vendor documentation.
List the Management Activity API subscriptions of the tenant (read only; Audit.SharePoint must be enabled)
Invoke-RestMethod -Method Get -Uri "https://manage.office.com/api/v1.0/<tenant-id>/activity/feed/subscriptions/list" -Headers @{ Authorization = "Bearer <access-token>" }
Based on vendor documentation.
Find recent FileDownloaded records (read only)
Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-7) -EndDate (Get-Date) -Operations FileDownloaded -ResultSize 5 | Select-Object -ExpandProperty AuditData
Based on vendor documentation.

Fields

The operation’s own fields first, then the fields every Microsoft 365 unified audit log (SharePoint and OneDrive) record has. Field names are the JSON paths of the record as the vendor documents it.

FieldWhat it holds
SiteUrlURL of the site (or OneDrive) the file is in. Mandatory in the file operations schema.
SourceRelativeUrlURL of the folder that holds the file, relative to the site.
SourceFileNameName of the file that was downloaded.
SourceFileExtensionThe file's extension, empty for a folder.
ListIdGUID of the document library (list) that holds the file, when applicable.
ListItemUniqueIdGUID that uniquely identifies the file as an item of its list, when applicable.
SensitivityLabelIdID of the sensitivity label the file carries, when it has one.
Fields every Microsoft 365 unified audit log (SharePoint and OneDrive) record has (21)
FieldWhat it holds
CreationTimeWhen the record was generated, in UTC.
IdUnique identifier of the audit record.
OperationRead by 1 ruleThe user or admin activity. The operation this page is about.
RecordTypeThe kind of record (4 SharePoint for site and admin events, 6 SharePointFileOperation for file and page events, 14 SharePointSharingOperation for sharing, 36 SharePointListOperation for lists).
WorkloadThe Microsoft 365 service the activity happened in, SharePoint or OneDrive.
OrganizationIdGUID of the Microsoft 365 tenant, the same in every service.
UserIdRead by 1 ruleUPN of the user who performed the activity. System accounts such as SHAREPOINT\system appear too, and app@sharepoint means an application with SharePoint app-only access acted for a user, an admin or a service.
UserKeyAn alternative ID for the user in UserId (the passport unique ID, PUID, for SharePoint and OneDrive users).
UserTypeWho performed the activity (0 Regular, 2 Admin, 3 DCAdmin, 4 System, 5 Application, 6 ServicePrincipal, 9 PartnerTechnician, 10 Guest...).
ClientIPAddress of the device used for the activity. For some services it is the address of an application, such as Office on the web, acting for the user.
ObjectIdRead by 1 ruleFor SharePoint and OneDrive activity, the full URL of the file or folder the activity was about. Microsoft does not say what it holds for a site-level event; expect the site address there, and check it on a record of your own.
ResultStatusWhether the activity succeeded (Succeeded, PartiallySucceeded or Failed), when the record carries it.
VersionVersion number of the record format for this activity.
ScopeWhere the event was created, online for Microsoft 365 or onprem for an on-premises server; SharePoint is the only workload that sends on-premises events.
AppAccessContextThe application context of the user or service principal that acted (ClientAppId, ClientAppName, AADSessionId, CorrelationId, UniqueTokenId, IssuedAtTime), when a Microsoft Entra token was involved.
SiteGUID of the site the item belongs to.
ItemTypeThe type of object the activity was about (File, Folder, Web, Site, Tenant, DocumentLibrary, Page).
EventSourceWhere in SharePoint the event occurred, SharePoint or ObjectModel.
UserAgentThe user's client or browser, as the client reports it.
ApplicationIdID of the application that performed the activity, when an application did.
ApplicationDisplayNameDisplay name of that application; with app@sharepoint it helps tell which task produced the record.

Values to know

UserId

ValueMeaningSignal
app@sharepointAn application with SharePoint app-only access did itRead ApplicationDisplayName and AppAccessContext to see which application, and whether it is one the organization installed.Worth knowing

Workload

ValueMeaningSignal
OneDriveThe file came from a user's OneDriveCompare the OneDrive owner in SiteUrl with UserId; downloads from another person's OneDrive follow a share or an admin grant.Worth knowing
SharePointThe file came from a SharePoint siteExpected

Volume and noise

High in every tenant: people download documents all day. The single record is not what the rule reads; it counts the different files (ObjectId) one account (UserId) downloads in one hour and reports 100 or more. People preparing a handover, a migration or an offline copy, and applications that download on a user's behalf, cross that line too. A spread over many sites, a site the account never used, or a new ClientIP or UserAgent for the account is the case to read first.

Keeping it manageable

  • Count different ObjectId values per UserId per hour, as the rule does, and compare the result with the account's own history before you raise the threshold for everyone.
  • Group the downloads by SiteUrl. Many sites in one hour, or sites the account never opened before, deserve a question to the account's owner.
  • Read AppAccessContext.ClientAppName and UserAgent to tell a person in a browser from an application; review applications that download on many users' behalf separately.
  • Downloads by the OneDrive sync app are FileSyncDownloadedFull, not counted here: the first sync of a library on a new computer downloads thousands of files legitimately, so count it on its own if you want it covered.

Sample event

A Microsoft 365 unified audit log (SharePoint and OneDrive) record in the vendor’s format, with made-up values.

{
  "CreationTime": "2026-11-18T09:30:12",
  "Id": "6f1c2d3e-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
  "Operation": "FileDownloaded",
  "OrganizationId": "00000000-0000-0000-0000-00000000c0de",
  "RecordType": 6,
  "UserKey": "10032001A2B3C4D5",
  "UserType": 0,
  "Version": 1,
  "Workload": "SharePoint",
  "ClientIP": "203.0.113.24",
  "ObjectId": "https://corpexample.sharepoint.com/sites/finance/Shared Documents/Budget/FY27-budget.xlsx",
  "UserId": "j.doe@corp.example.com",
  "AppAccessContext": {
    "AADSessionId": "00000000-0000-0000-0000-00000000a5e5",
    "CorrelationId": "00000000-0000-0000-0000-0000000c0aa1"
  },
  "EventSource": "SharePoint",
  "ItemType": "File",
  "Site": "00000000-0000-0000-0000-0000000517e1",
  "UserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0",
  "SiteUrl": "https://corpexample.sharepoint.com/sites/finance/",
  "SourceRelativeUrl": "Shared Documents/Budget",
  "SourceFileName": "FY27-budget.xlsx",
  "SourceFileExtension": "xlsx",
  "ListId": "00000000-0000-0000-0000-0000000d0c11",
  "ListItemUniqueId": "00000000-0000-0000-0000-000000f11e01",
  "SensitivityLabelId": "00000000-0000-0000-0000-0000001abe11"
}

Attacks this event reveals

Detection rules that read this event:

Detection logic (hypotheses that join this event with others) for:

Frequently asked questions

Does the rule count files synced by the OneDrive app?

No. The sync app writes FileSyncDownloadedFull, a different operation. The rule counts FileDownloaded only, which covers downloads in a browser and by applications.

Is the address in ClientIP always the user's device?

No. Microsoft notes that for some services it is the address of an application, such as Office on the web, acting for the user. Read it together with UserAgent.

References