Steps Involved:
Powershell Script: ## Get site permissions using SharePoint 2010 web service in powershell$uri="http://serverName:10736/sites/ECT2/_vti_bin/Permissions.asmx?wsdl" ## $siteName is a string which contains the site name for which you need to get the permissions[String]$siteName="ECT2"## $type is a string which contains the object type - List[String]$type="Web"## Web Service Reference - http://Site/_vti_bin/Permissions.asmx$permissionWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential [System.Xml.XmlNode]$xmlNode=$permissionWebServiceReference.GetPermissionCollection($siteName,$type)## Creates an GetSitePermissions.xml file in the D:\ which contains the permissions for the site$output = New-Object -TypeName System.IO.StreamWriter -ArgumentList "D:\GetSitePermissions.xml", $false$output.WriteLine("<?xml version=""1.0"" encoding=""utf-8"" ?>")$output.WriteLine($xmlNode.OuterXml)$output.WriteLine() $output.Dispose()
## Get site permissions using SharePoint 2010 web service in powershell$uri="http://serverName:10736/sites/ECT2/_vti_bin/Permissions.asmx?wsdl" ## $siteName is a string which contains the site name for which you need to get the permissions[String]$siteName="ECT2"## $type is a string which contains the object type - List[String]$type="Web"## Web Service Reference - http://Site/_vti_bin/Permissions.asmx$permissionWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential [System.Xml.XmlNode]$xmlNode=$permissionWebServiceReference.GetPermissionCollection($siteName,$type)## Creates an GetSitePermissions.xml file in the D:\ which contains the permissions for the site$output = New-Object -TypeName System.IO.StreamWriter -ArgumentList "D:\GetSitePermissions.xml", $false$output.WriteLine("<?xml version=""1.0"" encoding=""utf-8"" ?>")$output.WriteLine($xmlNode.OuterXml)$output.WriteLine() $output.Dispose()