đ How to See Who Viewed Files in SharePoint
Track document access across your SharePoint and Teams environments
Knowing who has viewed or accessed files helps you stay compliant, improve collaboration, and ensure accountability. SharePoint offers several built-in toolsâplus deeper integrations with Microsoft 365âto give you visibility into file activity.
Check File Activity in the Document Library
For quick visibility on recent interactions:
- Go to your SharePoint document library
- Hover over the file and click â...â (More options)
- Select Details
- On the right panel, youâll see:
- Who opened, viewed, or edited the file
- The time and date of each action
Tip
This panel only shows recent actions and doesnât include the full view history.
Note
This feature currently works only for Office file types (Word, Excel, PowerPoint).
PDFs, images, ZIP files, CAD models, and other formats are not supportedâyou wonât see a âViewâ count for these files.
â What to do instead for PDFs and other file types
If you want to track access to all file types, including PDFs:
- Use Microsoft Purview Audit Logs (see section below)
- Or set up a custom log using Power Automate
These methods give you full transparency across any file format, not just Office documents.
Why âViewâ Information Might Be Missing
Even for .docx
files, the â1 Viewâ indicator might not appear in the details pane. Here are the most common reasons:
đ Missing Admin Settings or Permissions
Reason | What to check |
---|---|
Microsoft Graph or Delve is disabled | Go to admin.microsoft.com > Org Settings > Microsoft Graph / Delve and ensure Graph and activity insights are enabled |
The site setting âLet viewers see who viewed filesâ is disabled | See instructions below to enable it |
The user is not a licensed Microsoft 365 internal user | Guests and anonymous users are not counted |
The file hasnât been opened by others yet | A file needs to be opened (not just created) to register a view |
You are using Classic View or a legacy library | Works only in the modern SharePoint experience |
đ§ How to Enable âLet viewers see who viewed filesâ
This setting controls whether SharePoint displays the âView countâ and recent viewers in the details pane.
Step-by-step:
- Go to SharePoint Admin Center
- Navigate to Sites > Active sites
- Select the affected site (e.g. project or team site)
- In the site panel, open the tab Settings
- Scroll down to find:
Let viewers see who viewed files
Turn this setting ON - Click Save
Note
If the option is not visible, itâs likely because Microsoft Graph or Delve is turned off tenant-wide. You need to enable them first (see next section).
â Ensure Microsoft Graph & Delve Are Enabled
To show viewer info, your Microsoft 365 tenant must allow activity-based insights from Microsoft Graph.
- Go to Microsoft 365 Admin Center
- Navigate to Settings > Org settings > Microsoft Graph or Delve
- Ensure the following are enabled:
- â âDelve is Onâ
- â âShow documents in Delve and other Graph-powered experiencesâ
- â âLet users see file activityâ or similar privacy settings
These settings must be changed by a Global Admin.
đ§Ș Advanced: Enable with PowerShell (for admins)
If you want to enable viewer info programmatically:
Set-SPOSite -Identity https://yourtenant.sharepoint.com/sites/yoursite -EnableForUserViewing $true
To check if it's already enabled:
Get-SPOSite -Identity https://yourtenant.sharepoint.com/sites/yoursite | Select *view*
Requires: SharePoint Online Management Shell and appropriate permissions.
Use Site Usage Reports for Trends
To understand how your SharePoint content is used at a higher level:
- Navigate to your SharePoint site
- Click the âïž gear icon > Site contents
- Open Site usage
- Youâll get insights into:
- Page and file views
- Popular content
- Traffic patterns over time
Note
These reports are aggregated and do not include individual usernames.
Access Audit Logs via Microsoft Purview
Need to know exactly who opened or viewed a fileâeven if it's a PDF, image, or CAD model?
With Microsoft Purview Audit Logs, you can search activity across your SharePoint and Teams environment in just a few clicks.
Important
This requires Microsoft 365 E5 or Purview Audit (Standard). You also need to have audit logging enabled (usually on by default for E5 tenants).
⥠Quick Workflow: How to Check Who Viewed a File
- Go to Microsoft Purview Compliance Center
- In the left menu, select Audit
- Click Search (or Start recording user and admin activity, if prompted)
- Under Activities, search for:
Viewed file
Accessed file
Downloaded file
(if relevant)
- Under File, folder or site, paste part of the file path or name (e.g.
Document2.pdf
) - Set your Time range (e.g. Last 7 days)
- (Optional) Add specific users under Users
- Click Search
Youâll now see:
- Who accessed the file
- When and how (viewed, downloaded, etc.)
- The device and IP address (if needed)
Tip
You can export the results as a .csv
file and even automate reporting if needed.
đ§© Use Case Example
Want to check if external partners have opened a shared PDF?
Just search by file name and set a date range. Youâll instantly know if, when, and by whom it was accessedâeven if the file type is not an Office document.
Note
If you donât see the Audit menu, contact your IT admin to ensure you have the correct role (e.g. Compliance Management or Audit Reader).
Build Custom Logs with Power Automate
Want a lightweight, no-code solution?
- Use Power Automate to log every file open or edit in a SharePoint List
- Or create a Read Confirmation Flow, where users confirm when theyâve accessed a file
This gives you full controlâwithout requiring premium Microsoft 365 plans.
Note
This method is flexible but not automatic for views. For PDF tracking, you may need to trigger flows based on file downloads or specific user interactions.
đ Summary
Method | Supports All File Types | Shows Who Viewed | License Required | Best For |
---|---|---|---|---|
File Details Pane | â Office only | Limited | No | Quick checks for docx/xlsx |
Site Usage Reports | â | No | No | General usage trends |
Microsoft Purview Logs | â | â Yes | Microsoft 365 E5 | Full audit trail |
Power Automate Logging | â (customizable) | â Yes (custom) | No (basic flows) | Custom tracking |