Remove-AzureADGroupOwner
This article provides migration details from Remove-AzureADGroupOwner command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Remove-AzureADGroupOwner
- Azure AD Module: AzureAD
- Microsoft Graph Command: Remove-MgGroupOwnerByRef (Community Examples)
- Graph Module: Microsoft.Graph.Groups
- Graph Endpoint: DELETE /groups/{group-id}/owners/{directoryObject-id}/$ref
Permissions
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | Group.ReadWrite.All | Directory.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | Group.ReadWrite.All | Directory.ReadWrite.All |
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
ObjectId | GroupId |
OwnerId | DirectoryObjectId |