SharePoint Online: How to See Who has viewed a File?

Requirement: See who has viewed a document in SharePoint Online.

How to see who viewed a document in SharePoint?

Can we see who has viewed a file in SharePoint or OneDrive? Yes! We can track who has viewed a file in SharePoint Online with this nifty feature, “SharePoint Viewers”. To see who has viewed a document in SharePoint, do the following:

  • Go to Site Settings >> Click on “Manage Site Features” under Site Actions
  • Activate the “SharePoint Viewers” feature.
how to see who viewed a document in sharepoint

Wait for a few minutes, and when hovering over a document, You’ll see the names of the people who have viewed a document!

sharepoint online see who has viewed a file

Get the Number of Views on Files without User Names

If you want to disable the user names (and want to get just the number of views), You can set the Policy settings in SharePoint Admin Center.

  • Go to SharePoint under Admin center >> Expand Policies, click on Sharing
  • Scroll down to the bottom and uncheck “Let site owners choose to display the names of people who viewed files or pages in SharePoint”.sharepoint online who viewed a document
  • Click on Save.

It takes a while for this change to take effect. Without this feature active, SharePoint just gives you how many people have viewed a document (without telling who has viewed it!).

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

14 thoughts on “SharePoint Online: How to See Who has viewed a File?

  • Can you Download this reprot for a power Bi report?

    Reply
  • Hi, what is they way to extract this data view count, any api? i want to show it in my UI for Videos. Please suggest.

    Reply
  • Can we download this report for a document library?

    Reply
  • Same questions, this seems like basic functionality that should be out of the box.

    Reply
  • I’ve activated this today, it shows as 54 users having viewed the file, but in the list there is only around 25 names. Is there a reason it cuts off? Is it possible to see all of the users who have viewd?

    Reply
  • Can we activate this using powershell?

    Reply
  • anybody knows why if the user have read only rights it doesn´t show that user?

    Reply
  • Doesn´t work on images?

    Reply
    • ¨No it dont and i have the same problem so if you find out how to do please tell.

      Reply
  • Hi Salaudeen, do you think there will be way to get a csv report of the users that have viewed pages/files using PowerShell or out of box?

    Reply
    • Same question here – would also like to know if you could tie the o365 audit log api to something in power automate or BI and cross reference that with a subset of users. If someone does not review a document within X time, send a reminder email to view this document for a compliance tracking type thing?

      Reply
  • Would you happen to have a PowerShell script that could turn this feature on for several sites (input a CSV File)?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *