Find Who has Created / Modified a SharePoint View

Ever wondered how to find the user who has created or modified a particular SharePoint view? and when it was created/modified? Well, There is no SharePoint UI to get these information! But using SharePoint object model, we can retrieve these data programmatically from SPFile object’s properties.

Here is how I retrieved “Created By”, “Created On”, “Modified By”, “Modified On” values using PowerShell:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Set these two variables accordingly
$WebURL  = ""
$ViewURL = ""

 #Get the Web
 $web = Get-SPWeb $WebURL

 #Get the View File
 $ViewFile = $web.GetFile($viewURL)
 Write-Host "Created By: " $ViewFile.Author 
 Write-Host "Created on: " $ViewFile.TimeCreated

 Write-Host "Modified By: " $ViewFile.ModifiedBy
 Write-Host "Modified On: " $ViewFile.TimeLastModified

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!

Leave a Reply

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