I want to remove the permission for each item and then want to add my unique permission I have tried the code for giving permission. But firstly, i want to remove it and then add new permission. My code is as below:

    $clientlist.Items | ForEach-Object{
                $userNew = $webNew.EnsureUser($user)
                $roleDefinition = $webNew.RoleDefinitions[$PermissionLevel]
                $roleAssignment = New-Object Microsoft.SharePoint.SPRoleAssignment($userNew)
                Write-Host "Successfully added $PermissionLevel permission to $UserNew in $clientlist list. " -foregroundcolor Green



2 Answers 2


To remove permissions for a given user:


This will remove all permissions for a given user. You can use the same method on folders or list items.


Change $clientlist.BreakRoleInheritance($True) to $clientlist.BreakRoleInheritance($false) as $true in the argument of BreakRoleInheritance specifies that permissions from the parent be copied over to child. If you don't want any permissions from parent to be passed over user $false

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.