SharePoint PowerShell Site Permissions

I want to grant domain permissions for a SharePoint user on a site. The Peoplepicker user in SharePoint found the user, and I can add the user to the browser on the site. But when I use PowerShell, the User is not in the list of permissions in the SharePoint GUI.

PS: New-SPUser -UserAlias "test\TestUser2" -PermissionLevel Contribute -web http://test.sharepoint.de/site/page PS: UserLogin DisplayName --------- ----------- TEST\testuser2 TestUser2 

also does not work:

 Get-SPWeb "http://test.sharepoint.de/site/page" | New-SPUser –UserAlias "test\TestUser2" -PermissionLevel Contribute 
+6
powershell sharepoint
source share
2 answers

It should be the following: Set-SPUser -Identity 'domain\name' -Web http://sp2test/site -AddPermissionLevel Read

+3
source share

What happens if you drop the page from your team?

 New-SPUser -UserAlias "test\TestUser2" -PermissionLevel Contribute -web http://test.sharepoint.de/site 

Also, after adding them via the graphical interface, does your team work to add them to additional sites? Also, maybe a dumb question, but are you using PS as a user who has access to add people to the site?

+1
source share

All Articles