Get history of list items viewed by current user

Brass Contributor

I have a requirement to get the history of items in a list and how many times the users viewed them.  I don't think this is possible, but figured I would see if this was done before.  


Basically, we will have a list of URLS for Reports and want to build a webpart that grabs the history of the different reports and when they were launched.  I'm thinking a separate list or database would need to be created and have a URL, action that would add row when user clicked on URL...


I've done 2007-2013 C# / PowerShell, but haven't gotten into the SpFx or PowerApps realms... thanks.  An Ideas would be appreciated

1 Reply

Hi @HerschelJ

the first thing that came to my mind when I read your post was "SharePoint Auditing".

Now this has been completely changed between SharePoint on premises and SharePoint Online.

Today, Auditing ist still taking place under the name of "Microsoft 365 unified audit log". For SharePoint this means that less data is being written to the audit log, but maybe what you need is still there. See

In case the opening of reports is written to this unified audit log, you might want to create some sort of web service that runs under an identity that has permissions to view the unified audit logs. And this web service could be called by a simple SPFx Web Part that displays the result.

If the events you are interested in are not written to the unified audit log, this is going to be tough. Then you would have to create your own mechanism for launching reports as you wrote in your post and make sure that this is the only way for users to launch reports. The display of the results would be similar as above.

Just my 2 cents.