I want to give a Domain User SharePoint permissions on a Site. The peoplepicker in SharePoint found the user and i can add the user in the Browser to the Site. But when I use PowerShell, the User is not in the permission list on 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 not working:
Get-SPWeb "http://test.sharepoint.de/site/page" | New-SPUser –UserAlias "test\TestUser2" -PermissionLevel Contribute
It should be this: Set-SPUser -Identity 'domain\name' -Web http://sp2test/site -AddPermissionLevel Read
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With