-
Notifications
You must be signed in to change notification settings - Fork 215
Closed
Description
Trying to add a user to an AAD group, I did the following:
$params = @{
"@odata.id"= "https://graph.microsoft.com/v1.0/users/47f666c9-xxxx-xxxx-xxxxxxxxxxxx"
}
New-MgGroupMemberByRef -GroupId 66fa7ce5-xxxx-xxxx-xxxxxxxxxxxx -BodyParameter $params
But surprisingly, I get this error:
New-MgGroupMemberByRef : A parameter cannot be found that matches parameter name 'BodyParameter'. At line:1 char:70
Which doesn't seem to make sense according the docs.