Forum Discussion

TonyRedmond's avatar
Oct 20, 2026

Why the Microsoft Graph PowerShell SDK has Two Cmdlets to Add Group Members

It’s a consequence of how the Microsoft Graph PowerShell SDK is built that two cmdlets are available to add members to Entra ID groups (the same is true for group owners). The reason why the New-MgGroupMember and New-MgGroupMemberByRef cmdlets exist is down to how the Graph SDK build process constructs cmdlets from Graph metadata. The Graph exposes two ways to add new group members, so the SDK follows suit.

https://office365itpros.com/2026/10/20/group-member-sdk-cmdlets/

No RepliesBe the first to reply