Add-EntraGroupOwner
Add a user or service principal as an owner of a Microsoft 365 or security group.
Syntax
Default (Default)
Add-EntraGroupOwner
-GroupId <String>
-OwnerId <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Add-EntraGroupOwner
cmdlet adds a user or service principal as an owner of a Microsoft 365 or security group. Owners can modify the group.
New-EntraGroupOwner
is an alias of Add-EntraGroupOwner
.
In delegated scenarios, the signed-in user must have either a supported Microsoft Entra role or a custom role with the necessary permissions. The minimum roles required for this operation are:
- Group owners
- User Administrator
- Directory Writers
- Groups Administrator
Parameters
-GroupId
Specifies the ID of a group in Microsoft Entra ID.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | ObjectId |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-OwnerId
Specifies the Object ID of a user or service principal to assign as a group owner.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | RefObjectId |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.