Add-EntraApplicationOwner
Adds an owner to an application.
Syntax
Add-EntraApplicationOwner
-ApplicationId <String>
-OwnerId <String>
[<CommonParameters>]
Description
The Add-EntraApplicationOwner
adds an owner to a Microsoft Entra ID application. Only individual users are supported.
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 -OwnerId $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.-OwnerId
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 |
-OwnerId
Specifies the ID of the Microsoft Entra ID object to assign as owner/manager/member.
Type: | System.String |
Aliases: | RefObjectId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |