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

Group member cmdlets in the Microsoft Graph PowerShell SDK.

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.