Remove permission for the group from SharePoint 2010 list using web service in powershell

Navigate to the SharePoint list, in the ribbon interface click on List tab. In the Settings group, click on List Settings. In the Permissions and Management section, click on Pemissions for this list. You could be able to view all the permissions for the list.

Steps Involved:

  1. Open SharePoint 2010 Management Shell by going to Start | All Programs | SharePoint | Microsoft SharePoint 2010 Products | SharePoint 2010 Management Shell (Run as Administrator).
  2. Run the following script.

Powershell Script:

 
 
## Remove permission for the group from SharePoint 2010 list using web service in powershell
$uri="http://serverName:10736/sites/ECT2/_vti_bin/Permissions.asmx?wsdl"
## $listName is a string which contains the list name from which user permission has to be removed
[
String]$listName="A1"
## $type is a string which contains the object type - List
[
String]$type="List"
## $permissionIdentifier is a string which contains the group for which the permission has to be removed
[
String]$permissionIdentifier="Group3"
## $permissionType is a string which contains the permission type - user
[
String]$permissionType="group"

## Web Service Reference - http://Site/_vti_bin/Permissions.asmx
$permissionWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential
$permissionWebServiceReference.RemovePermission($listName,$type,$permissionIdentifier,$permissionType)