Edit

Share via


Remove-EntraApplicationOwner

Removes an owner from an application.

Syntax

Default (Default)

Remove-EntraApplicationOwner

    -OwnerId <String>
    -ApplicationId <String>
    [<CommonParameters>]

Description

The Remove-EntraApplicationOwner cmdlet removes an owner from an application in Microsoft Entra ID.

Examples

Example 1: Remove an owner from an application

Connect-Entra -Scopes 'Application.ReadWrite.All'
$application = Get-EntraApplication -Filter "DisplayName eq 'Contoso Helpdesk Application'"
$owner = Get-EntraApplicationOwner -ApplicationId $application.Id | Where-Object {$_.userPrincipalName -eq 'SawyerM@contoso.com'}
Remove-EntraApplicationOwner -ApplicationId $application.Id -OwnerId $owner.Id

This example removes the specified owner from the specified application. You can use the command Get-EntraApplication to get application Id.

  • -ApplicationId parameter specifies the the unique identifier of a application.
  • -OwnerId parameter specifies the ID of the owner.

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 owner.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

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.