Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article provides migration details from Add-AzureADGroupMember command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Add-AzureADGroupMember
- Azure AD Module: AzureAD
- Microsoft Graph Command: New-MgGroupMemberByRef (Community Examples)
- Graph Module: Microsoft.Graph.Groups
- Graph Endpoint: POST /groups/{group-id}/members/$ref
Permissions
Delegated | Delegated (personal Microsoft account) | Application |
---|---|---|
GroupMember.ReadWrite.All and Device.ReadWrite.All | Not supported. | GroupMember.ReadWrite.All and Device.ReadWrite.All. |
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
ObjectId | GroupId |
RefObjectId | DirectoryObjectId |