PnP ManagementShell连接SharePoint Online出错的解决方案

网友投稿 290 2022-10-03

PnP ManagementShell连接SharePoint Online出错的解决方案

Blog链接:Online 时出错,如下所示:

Connect-PnPOnline : AADSTS65001: The user or administrator has not consented to use the application with ID '31359c7f-bd7e-475c-86db-fdb8c937548e' named 'PnP Management Shell'. Send an interactive authorization request for this user and resource.Trace ID: 6939620a-3121-4546-b1fb-b76d780f8500Correlation ID: a83fdfaa-7e56-433f-874a-f7e1b4203f88Timestamp: 2021-11-25 08:14:15ZAt line:1 char:1+ Connect-PnPOnline –§CUrl ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Connect-PnPOnline], MsalUiRequiredException + FullyQualifiedErrorId : Microsoft.Identity.Client.MsalUiRequiredException,PnP.PowerShell.Commands.Base.ConnectOnline

查了相关资料,给的解决方案是,需要授权PnP ManagementShell应用程序权限,如下所示:

Register-PnPManagementShellAccess

然后再次输入命令,连接SharePoint Online的site,连接成功,如下所示:

分享给大家,希望能给遇到同样问题的小伙伴提供解决方案。

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:SharePoint Online开发:使用PnP ManagementShell 批量下载文档
下一篇:SpringMVC使用注解配置方式
相关文章

 发表评论

暂时没有评论,来抢沙发吧~