How to Delete a Permission Level in SharePoint using PowerShell?

Requirement: PowerShell to remove a permission level in SharePoint

How to remove a permission level in SharePoint?

To delete a permission level in SharePoint, follow these steps:

  • Login to your SharePoint site as Farm/Site collection administrator. 
  • Navigate to Site Settings >> Site Permissions 
  • Click on the “Permission Level” button from the ribbon. 
  • Select the permission level to remove and click on the “Delete Selected Permission Levels” link.
    sharepoint remove permission level powershell
  • Confirm the prompt to delete permission level.

Now, lets see SharePoint PowerShell to remove permission level.

SharePoint: PowerShell script to delete a permission level

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue 

#Configuration parameters
$PermissionLevelName="Contribute without Delete"

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

if($Web.RoleDefinitions[$PermissionLevelName] -ne $null)
   write-host "Permission level Deleted successfully!" -f Green
 write-host "Permission level Not Found!" -f Red
Do not delete any out of the box Permission level! E.g. “Contribute”, “Full Control”, etc

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

2 thoughts on “How to Delete a Permission Level in SharePoint using PowerShell?

Leave a Reply