Sharepoint Copy List Permission using Sharepoint Powershell

Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue


#PowerShell Function to copy permissions between Lists in SharePoint

Function Copy-ListPermissions()








#Get the Web

$Web = Get-SPweb $WebURL

$TargetWeb=Get-SPweb $TargetWebURL

#Get Source and Target Lists

$SourceList = $Web.lists[$SourceListName]

$TargetList = $TargetWeb.lists[$TargetListName]


#if permissions are Inherited in Source, apply it in Target list





else #Copy permissions from Source to Target List


#Reset the Inheritence in Target List



#Copy Source list permissions to Destination List

$SourceList.RoleAssignments | foreach-object {






#Call the function to copy list permissions

Copy-ListPermissions “Source Site url” “Dest Site Url” “Source List” “Dest List”

Leave a Reply

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