Remove-EntraGroupOwner
Removes an owner from a group.
Syntax
Remove-EntraGroupOwner
-OwnerId <String>
-ObjectId <String>
[<CommonParameters>]
Description
The Remove-EntraGroupOwner cmdlet removes an owner from a group in Microsoft Entra ID.
Examples
Example 1: Remove an owner
Connect-Entra -Scopes 'Group.ReadWrite.All'
Remove-EntraGroupOwner -ObjectId 'qqqqqqqq-5555-0000-1111-hhhhhhhhhhhh' -OwnerId 'xxxxxxxx-8888-5555-9999-bbbbbbbbbbbb'
This example demonstrates how to remove an owner from a group in Microsoft Entra ID.
ObjectID - Specifies the ID of a group in Microsoft Entra ID.
OwnerId - Specifies the ID of an owner.
Parameters
-ObjectId
Specifies the ID of a group in Microsoft Entra ID.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-OwnerId
Specifies the ID of an owner.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Related Links
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