Add-AzureADGroupOwner

This Azure PowerShell article will discuss how to add an owner to an AzureAD group using the PowerShell command Add-AzureADGroupOwner, its syntax, and usage with examples.

Add-AzureADGroupOwner

This PowerShell command can help you add the Owner to an existing Azure AD group.

Syntax of Add-AzureADGroupOwner

Below is the syntax of the Add-AzureADGroupOwner PowerShell command.

Add-AzureADGroupOwner
   -ObjectId <String>
   -RefObjectId <String>

Example:

You can execute the below Azure PowerShell command to add the member with the specified RefObjectId to the Azure AD group with the specified Object ID.

Add-AzureADGroupOwner -ObjectId "23359f6d-850e-47e3-96b3-6ccae2ecb7bd" -RefObjectId "ee09bfcd-36e9-47c2-a98c-cf19412540e6"
Add-AzureADGroupOwner

Here, objectID is 23359f6d-850e-47e3-96b3-6ccae2ecb7bd, which is my groupID.

RefObjectId is ee09bfcd-36e9-47c2-a98c-cf19412540e6, the member ID I want to add as an owner to my group.

You may also like following the articles below

Conclusion

In this Azure PowerShell article, we discussed how to add an owner to an AzureAD group using the PowerShell command Add-AzureADGroupOwner, its syntax, and usage with examples.