Remove-AzureADGroupMember
This article provides migration details from Remove-AzureADGroupMember command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Remove-AzureADGroupMember
- Azure AD Module: AzureAD
- Microsoft Graph Command: Remove-MgGroupMemberByRef ([Community Examples](https://github.com/orgs/msgraph/discussions?discussions q=Remove-MgGroupMemberByRef))
- Graph Module: Microsoft.Graph.Groups
- Graph Endpoint: DELETE /groups/{group-id}/members/{directoryObject-id}/$ref
Permissions
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | GroupMember.ReadWrite.All | Directory.ReadWrite.All, Group.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | GroupMember.ReadWrite.All | Directory.ReadWrite.All, Group.ReadWrite.All |
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
ObjectId | GroupId |
MemberId | DirectoryObjectId |