Modify List Permissions With PowerShell

Home » Modify List Permissions With PowerShell

Modify List Permissions With PowerShell

Last updated on October 31st, 2017 at 10:28 am

Overview

This article discusses ways to modify list permissions, such as breaking list inheritance, resetting inheritance, resetting list item permission inheritance and removing all list permissions with PowerShell.

Break Inheritance

Let’s say you create a shiny new custom list without changing any of the defaults.  Later, you realize that you wanted unique permissions on the list.  If you use the web interface to “Stop Inheriting Permissions”, existing permissions from the parent web site will get copied to the list.  Rather than deleting all the user/group permissions that you DON’T want applied to the list, it may be easier to start with minimal permissions like so:

  • The list method BreakRoleInheritance($FALSE) tells SharePoint to break inheritance and NOT copy existing permissions.  The person running the script will receive full control of the list.
  • If you want to break inheritance but keep the inherited permissions, change the command to BreakRoleInheritance($TRUE).

Reset Inheritance

On the other hand, perhaps you have a list that has unique permissions and you want to reset inheritance.  The following will reset the list and all list child items:

Remove List Permissions

Sometimes you just want to start over.  Maybe your list/library has become clogged with loads of useless permissions.  I’m looking at you “Limited Access” permission!  The following will remove ALL list permissions:

 

By |2017-10-31T10:28:53+04:30July 3rd, 2017|PowerShell|Comments Off on Modify List Permissions With PowerShell
Go to Top