Skip to content

Issue with New-MgGroupMemberByRef ? #1440

@imdebourg

Description

@imdebourg

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions