Compliance Problems

How to Obtain Complete Audit Logs for a User's OneDrive in Microsoft Purview

Amos GikundaAmos Gikunda Oct 26, 2026 869 views

Question details

The user needs to retrieve complete audit logs for activities in a specific user's OneDrive for Business using Microsoft Purview, but current searches return incomplete or zero results.

How to Obtain Complete Audit Logs for a User's OneDrive in Microsoft Purview
Product
Microsoft Purview and OneDrive for Business
Device & OS
not provided
Scenario
Searching for specific user activity logs in Microsoft Purview to track file, folder, and synchronization events in OneDrive.
Observed behavior
Searches using the standard OneDrive URL return incomplete data, such as only showing 'Viewed pages' activity, or fail to return any results at all.
Before you start

Ensure you are dealing with a OneDrive for Business account and have the appropriate administrative permissions in Microsoft Purview, as personal consumer OneDrive accounts do not generate Microsoft 365 audit logs.

Solution 1Recommended

Modify the OneDrive URL in Purview Audit Search

Appending a specific layout suffix to the user's OneDrive URL often resolves the issue of missing audit data like file downloads.

When searching audit logs in Purview, using just the base URL of a user's OneDrive for Business often results in only 'Viewed pages' being logged. Modifying the URL ensures the search captures the full scope of file and folder activities.

1
Open Microsoft Purview Audit

Navigate to the Microsoft Purview compliance portal and open the Audit search tool.

2
Specify the target user

In the search parameters, enter the specific user's name in the 'Users' box.

3
Append the layout suffix to the URL

In the 'File, folder, or site' box, input the user's full OneDrive for Business URL and add '_layouts/15/onedrive.aspx' to the very end of it.

4
Run the audit search

Click search to generate the logs. Verify that complete activities, such as 'Download file' and synchronization events, are now correctly returning in the results.

Modify the OneDrive URL in Purview Audit Search
Suffix Requirement: Using the _layouts/15/onedrive.aspx suffix is a known method to bypass backend filtering issues that hide specific file activities in Purview searches.
Free Microsoft Office alternative

Discover WPS Office for Your Daily Productivity Needs

While Microsoft Purview handles complex enterprise compliance, WPS Office offers a free, lightweight, and highly compatible alternative for your everyday document creation. Enjoy a familiar tabbed interface and seamless migration without the heavy subscription fees.

  1. 1. Download the installer: Get the free WPS Office installer directly from the official WPS website.
  2. 2. Install and launch: Follow the simple on-screen instructions to install the suite on your computer.
  3. 3. Open existing files: Open your Word, Excel, or PowerPoint files instantly in WPS Office without worrying about formatting loss.
Fully compatible with Microsoft Office formats (Word, Excel, PowerPoint)Lightweight installation that runs smoothly on older and newer devicesBuilt-in PDF editing and format conversion toolsFamiliar interface requiring zero learning curve for Office users
microsoft office alternative - wps office

Frequently Asked Questions

Why are my Purview audit search results only showing 'Viewed pages'?

This is a common issue when searching with just the base OneDrive URL. To see the full scope of activities like file downloads, you need to append '_layouts/15/onedrive.aspx' to the end of the site URL in your search parameters.

Can I get audit logs for a personal OneDrive account?

No, Microsoft 365 audit logs are exclusively available for OneDrive for Business accounts. Personal consumer OneDrive accounts do not generate or support enterprise-level audit tracking.

What types of activities can be audited in OneDrive for Business?

OneDrive for Business supports comprehensive auditing, which includes tracking file creation and downloads, page views, folder modifications, and synchronization activities across the user's drive.