SharePoint PowerShell 网站权限

标签 sharepoint powershell

我想在站点上授予域用户 SharePoint 权限。
SharePoint 中的 peoplepicker 找到了用户,我可以将浏览器中的用户添加到站点。
但是当我使用 PowerShell 时,用户不在 SharePoint GUI 的权限列表中。

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

PS:
UserLogin            DisplayName         
---------            -----------         
TEST\testuser2       TestUser2  

也不起作用:
Get-SPWeb "http://test.sharepoint.de/site/page" | New-SPUser –UserAlias "test\TestUser2" -PermissionLevel Contribute

最佳答案

应该是这样的:Set-SPUser -Identity 'domain\name' -Web http://sp2test/site -AddPermissionLevel Read

关于SharePoint PowerShell 网站权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4830639/

相关文章:

powershell - Amazon Web Service PowerShell 凭据设置错误

powershell - Get-ChildItemWhere-Object -notlike $array - 有办法做到这一点吗?

sharepoint - SharePoint 环境中的身份验证

javascript - 尽管 config.allowedContent = true,Ckeditor 4.5.7 仍会删除 HTML 标签

sharepoint - 从其他内容管理系统迁移到 SharePoint

sharepoint - 安装 SharePoint 时应如何使用此 SetSPN 命令

sql-server - 是否可以使用 Microsoft 2013 sharepoint 搜索服务器作为我的网站的搜索引擎

Powershell 哈希表检索问题

windows - 如何在powershell中下载整个dropbox目录?

Azure表存储: a script to populate new column for existing tables