Below is the PS commands to give permission to user in any SharePoint site in any SharePoint group
Here I have added my account(RR) to group “test 222 Owners” of site collection https://***/sites/test_222/
- Replace https://***/sites/test_222/ with Site collection URL
- Replace test 222 Owners with group name
- Replace RR with User Signum.
So use above work around to resolve individual’s incident
related to access issue or add user incidents in Ericoll extranet site.
$SiteCollection = Get-SPSite “https://***/sites/test_222/”
$Rootweb = $SiteCollection.RootWeb
$NewExtranetUser = New-SPUser -UserAlias
"i:0#.w|ericsson\RR"
Web "https://***/sites/test_222/"
<Above
command will ask for web value so give your site collection URL>
$SharePointGroup = Rootweb.SiteGroups["test 222 Owners"]
Set-SPUser -Identity $NewExtranetUser -Web Rootweb -Group
$SharePointGroup
No comments:
Post a Comment