【发布时间】:2021-06-29 23:17:55
【问题描述】:
我通过Register-PnPAzureADApp 注册了一个应用程序注册,该应用程序具有应用程序级别Sites.FullControl.All 权限,并且管理员也已同意。
然后我使用此应用注册连接:Connect-PnPOnline -ClientId xxx -Url https://tenant.sharepoint.com" -Tenant tenant.onmicrosoft.com -CertificatePath 'path\to\cert.pfx。这也成功了。
我的最终目标是注册另一个具有Sites.Selected 权限的应用程序,这样我就可以将其限制在特定网站上。在此之前,如果我尝试通过 Get-PnPAzureADAppSitePermission -Site https://tenant.sharepoint.com/sites/sitename 查看网站的现有权限,则会出错:
Get-PnPAzureADAppSitePermission: {"error":{"code":"accessDenied","message":"Access denied",...
如果我也尝试通过Grant-PnPAzureADAppSitePermission 设置权限,也是一样。
我错过了什么吗?
谢谢, 拉赫什
【问题讨论】:
标签: sharepoint sharepoint-online azure-ad-graph-api