· 前言
最近碰到一个问题,由于User Profile Service服务有问题,用户信息无法更新。所以,想到Set-SPUser命令可以更新,于是乎找到这个命令,但是更新的时候发现拒绝访问的错误。找了很久原因,发现需要设置一下权限,不知道是否还会有人遇到类似的问题,记录一下分享给大家。
· Solution: Add a web application user policy with Full control for the Farm Administrator who runs the Script!
- Open SharePoint 2016/2013/2010 Central Administration site as a Farm Administrator
- Click Application Management >> Select Manage Web Applications.
- Select your target web application >> Click the User Policy button from the ribbon.
- From the Policy for Web Application dialog box, click on "Add Users" link.
- Select All Zones for the web application and click on Next
- Enter the user account and Select the permission policy level as "Full Control"
- Click Finish to save your changes.
参考链接: http://www.sharepointdiary.com/2016/03/access-is-denied-exception-from-hresult-0x80070005-powershell.html#ixzz5PRL5sK36
博文推荐: |
SharePoint 2013 WebPart 管理工具分享[开源] |
基于SharePoint 2013的论坛解决方案[开源] |
SharePoint 2013 学习基础系列入门教程 |
SharePoint 2013 图文开发系列之门教程 |
SharePoint Designer 学习系列入门教程 |
特:如果有SharePoint项目,欢迎邮件联系我 |