Skip to content

Latest commit

 

History

History
119 lines (88 loc) · 2.67 KB

Add-AzureADApplicationOwner.md

File metadata and controls

119 lines (88 loc) · 2.67 KB
external help file Module Name online version schema
Microsoft.Open.AzureAD16.Graph.PowerShell.dll-Help.xml
AzureAD
2.0.0

Add-AzureADApplicationOwner

SYNOPSIS

Adds an owner to an application.

SYNTAX

Add-AzureADApplicationOwner -ObjectId <String> -RefObjectId <String> [-InformationAction <ActionPreference>]
 [-InformationVariable <String>] [<CommonParameters>]

DESCRIPTION

The Add-AzureADApplicationOwner cmdlet adds an owner to a Microsoft Entra ID application.

EXAMPLES

Example 1: Add a user as an owner to an application

PS C:\> $ApplicationId = (Get-AzureADApplication -Top 1).ObjectId
PS C:\> $UserObjectId = (Get-AzureADUser -Top 1).ObjectId
PS C:\> Add-AzureADApplicationOwner -ObjectId $ApplicationId -RefObjectId $UserObjectId

This command adds an owner to an application.

PARAMETERS

-InformationAction

Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are: * Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type: ActionPreference
Parameter Sets: (All)
Aliases: infa

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InformationVariable

Specifies a variable in which to store an information event message.

Type: String
Parameter Sets: (All)
Aliases: iv

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ObjectId

Specifies the ID of an application in Microsoft Entra ID.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-RefObjectId

Specifies the ID of the Active Directory object to assign as owner/manager/member.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

NOTES

See the migration guide for Add-AzureADApplicationOwner to the Microsoft Graph PowerShell.

INPUTS

OUTPUTS

RELATED LINKS

Get-AzureADApplicationOwner

Remove-AzureADApplicationOwner