Create SharePoint Online Audit Reports for File Views
Question details
Find detailed SharePoint Online file-view activity and determine how many unique users accessed files over a selected date range.

- 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.
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.
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.
Go to the Microsoft Purview portal and open Solutions > Audit. If Audit is unavailable, ask your administrator to check your permissions.
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.
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.
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.

Review the most viewed content in SharePoint site usage
Use site usage for a quick overview when individual audit records are not required.
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.

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.




