[英]SharePoint Office365 Powershell Webpart AllItems.aspx
[英]adding office365 group to Sharepoint site collection administrators thorugh Powershell
您可以使用 PnP PowerShell cmdlet Add-PnPSiteCollectionAdmin -owners
。
参考: https://github.com/pnp/powershell/blob/dev/documentation/Add-PnPSiteCollectionAdmin.md
我们需要注意的是,与文档中所说的不同,我们需要使用像i:0#.f|membership|user1@contoso.sharepoint.com
user1@contoso.sharepoint.com 这样的LoginName
因此,对于 O365 组,它应类似于c:0o.c|federateddirectoryclaimprovider|<Object ID>
对于安全组,它应类似于c:0t.c|tenant|<Object Id>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.