Remove-EntraApplicationOwner
Removes an owner from an application.
Syntax
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'
Remove-EntraApplicationOwner @params
$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.
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 owner.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |