You can grant permissions to a user or group in SharePoint using Windows PowerShell. Simply add the user or group to the role assignment collection:.
PS > $spWeb = Get-SPWeb http://SP01.powershell.nu
PS > $spPrincipal = [Microsoft.SharePoint.SPPrincipal]$spWeb.SiteGroups[$rGroup]
PS > $spWeb.RoleAssignments.Add($spPrincipal)
PS > $spWeb.Dispose()
ReTweet this Tip!
Posted
Mar 12 2012, 06:00 AM
by
sos