Remove-EntraApplicationOwner

Removes an owner from an application.

Syntax

Remove-EntraApplicationOwner
       -OwnerId <String>
       -ObjectId <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 -SearchString '<application-name>'
$params = @{
    ObjectId = $Application.ObjectId
    OwnerId = 'bbbbbbbb-1111-2222-3333-cccccccccccc'
}

Remove-EntraApplicationOwner @params

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

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

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

-OwnerId

Specifies the ID of the owner.

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