Add-EntraApplicationOwner

Adds an owner to an application.

Syntax

Add-EntraApplicationOwner
   -ApplicationId <String>
   -RefObjectId <String>
   [<CommonParameters>]

Description

The Add-EntraApplicationOwner cmdlet adds an owner to a Microsoft Entra ID application.

Examples

Example 1: Add a user as an owner to an application

Connect-Entra -Scopes 'Application.ReadWrite.All'
$application = Get-EntraApplication -Filter "DisplayName eq 'Helpdesk Application'"
$user = Get-EntraUser -UserId 'SawyerM@contoso.com'
Add-EntraApplicationOwner -ApplicationId $application.Id -RefObjectId $user.Id

This example demonstrates how to add an owner to an application in Microsoft Entra ID.

  • -ApplicationId parameter specifies the ID of an application.
  • -RefObjectId parameter specifies the ID of a user.

Parameters

-ApplicationId

Specifies the ID of an application in Microsoft Entra ID.

Type:System.String
Aliases:ObjectId
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-RefObjectId

Specifies the ID of the Microsoft Entra ID object to assign as owner/manager/member.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False