pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
989 stars 662 forks source link

Set-PnPUnifiedGroup -Identity $group.GroupId -Members - throws error #2744

Closed RoSchoe closed 4 years ago

RoSchoe commented 4 years ago

Reporting an Issue or Missing Feature

is there a script / documentation how to add user to unifiedGroup without set every user who still exists in this group?

Set-PnPUnifiedGroup -Identity $group.GroupId -Members @("name@tenant.onmicrosoft.com","name2@tenant.onmicrosoft.com");

-->throws exception - because one user name2 still exits if there is no member, there is no error :)

Expected behavior

-no error -function to add user with pnp powershell

Actual behavior

System.AggregateException: ..... ---> (Interne Ausnahme #0) Microsoft.Graph.ServiceException: Code: Request_BadRequest Message: One or more added object references already exist for the following modified properties: 'members'

Steps to reproduce behavior

use the script

Which version of the PnP-PowerShell Cmdlets are you using?

current (19.06.2020)

Please help

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

RoSchoe commented 4 years ago

doppelt