Add-EntraApplicationOwner
Adds an owner to an application.
Syntax
ByApplicationIdAndOwnerId
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.
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 ID of the Microsoft Entra ID object to assign as owner/manager/member.
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.