external help file | Module Name | online version | schema |
---|---|---|---|
Microsoft.Open.AzureAD16.Graph.PowerShell.dll-Help.xml |
AzureAD |
2.0.0 |
Adds an owner to an application.
Add-AzureADApplicationOwner -ObjectId <String> -RefObjectId <String> [-InformationAction <ActionPreference>]
[-InformationVariable <String>] [<CommonParameters>]
The Add-AzureADApplicationOwner cmdlet adds an owner to a Microsoft Entra ID 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.
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
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
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
See the migration guide for Add-AzureADApplicationOwner to the Microsoft Graph PowerShell.