Add-EntraApplicationOwner
Adds an owner to an application.
Syntax
Add-EntraApplicationOwner
-ObjectId <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'
$ApplicationId = (Get-EntraApplication -Top 1).ObjectId
$UserObjectId = (Get-EntraUser -Top 1).ObjectId
Add-EntraApplicationOwner -ObjectId $ApplicationId -RefObjectId $UserObjectId
The first command gets an application using Get-EntraApplication cmdlet, and stores the ObjectId property value in $ApplicationId variable.
The second command gets a user using Get-EntraUser cmdlet, and stores the ObjectId property value in $UserObjectId variable.
This final command adds an owner in $UserObjectId to an application in $ApplicationId.
This command adds an owner to an application.
Parameters
-ObjectId
Specifies the ID of an application in Microsoft Entra ID.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RefObjectId
Specifies the ID of the Active Directory 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 |
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for