Compliance Problems

Create SharePoint Online Audit Reports for File Views

Anum MushtaqAnum Mushtaq Nov 18, 2026 869 views

Question details

Find detailed SharePoint Online file-view activity and determine how many unique users accessed files over a selected date range.

How to Create SharePoint Online Audit Reports for File Views
Product
SharePoint Online and Microsoft Purview Audit
Device & OS
not provided
Scenario
A user needs more detailed file-view information than SharePoint site usage reports provide, potentially across multiple days.
Observed behavior
Site usage reports show high-level information, while legacy audit reports have limitations and custom queries may fail when more than one day is selected.
Before you start

Ask your Microsoft 365 administrator for permission to search the audit log, and confirm that auditing is enabled and the requested dates fall within your organization's retention period. Identify the SharePoint site or file URL and the date range you want to investigate.

Solution 1Recommended

Search Microsoft Purview Audit for file access activity

Use the unified audit log to investigate individual file access events and export the results for analysis.

Audit records represent events, not unique users. To count unique users, analyze the exported user identifiers for the relevant file and date range.

The legacy SharePoint audit log is being retired, and some legacy features, such as subsite-scoped reports, may no longer be available.

1
Open Audit

Go to the Microsoft Purview portal and open Solutions > Audit. If Audit is unavailable, ask your administrator to check your permissions.

2
Set search criteria

On the Audit search page, select the start and end dates and choose the file access activity, such as Accessed file. Add the site or file URL in the available filters where applicable.

3
Run and review the search

Select Search, then open the completed search to review matching records. Check the activity, user identifier, file URL, and timestamp to confirm that the results match your investigation.

4
Export and count users

Use Export on the search results page to download the records. Open the export in a spreadsheet, filter it to the relevant file and activity, and count distinct user identifiers rather than counting rows.

Search Microsoft Purview Audit for file access activity
If a multi-day search fails: Try shorter date ranges in separate Audit searches and combine the exports for analysis. If the search still fails, ask your administrator to check permissions and retention, or contact Microsoft Support.
Free Microsoft Office alternative

Analyze exported SharePoint audit data in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with exported audit data. Open your export in WPS Spreadsheet and use filters to review file activity; Microsoft Purview is still required to search the audit log.

Filter exported file access records by user, file, or dateCompatible with Microsoft Excel XLSX files and CSV exportsFamiliar spreadsheet interface for an easy transition from Microsoft OfficeFree and lightweight for everyday document and spreadsheet work
microsoft office alternative - wps office

Frequently Asked Questions

Can SharePoint site usage show everyone who viewed a file?

Site usage provides an overview, including a Most viewed section with up to 10 files and pages. For individual activity records, search Microsoft Purview Audit.

How do I count unique users instead of file access events?

Export the Audit search results, filter them to the relevant file and activity, and count distinct user identifiers in a spreadsheet. Multiple event rows for one user should not be counted as multiple users.

What should I do if a search spanning several days fails?

Run separate searches for shorter date ranges in Microsoft Purview Audit, then combine the exports. If the problem persists, ask your administrator to check permissions and retention or contact Microsoft Support.

Why can't I open Microsoft Purview Audit?

Audit access requires appropriate permissions. Ask your Microsoft 365 administrator to verify your access and confirm that auditing is enabled for your organization.