Add-AzureADGroupMember
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-MgGroupMember (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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for