Connect-PnPOnline -url https://contoso.sharepoint.com/abc -Interactive Add-PnPGroupMember -LoginName user@test.com But I get this: PowerShell Copy Add-PnPGroupMember : Exception of type 'System.Management.Automation.PSInvalidOperationException' was thrown. At line:1 char:1 + Add-PnPGroupMe...
Add-PnPGroupMember won't map a user With the following command I will entitle our users to a specfic site: Connect-PnPOnline -Url https://xxx.sharepoint.com/sites/yyy -Credentials $userCredential2 $groupMember = Get-PnPGroup -Associa...Show More Like 0 Reply View Full Discussion (...
请尝试在添加成员时指定组ID而不是组名称。您可以使用Get-PnPGroup并指定组名称和站点URL来获取组ID:
Connect-PnPOnline -url https://contoso.sharepoint.com/abc -Interactive Add-PnPGroupMember -LoginName user@test.com But I get this: PowerShell Copy Add-PnPGroupMember : Exception of type 'System.Management.Automation.PSInvalidOperationException' was thrown. At line:1 char:1 + Add-PnPGroupMe...