Add-AzureADApplicationOwner
This article provides migration details from Add-AzureADApplicationOwner command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Add-AzureADApplicationOwner
- Azure AD Module: AzureAD
- Microsoft Graph Command: New-MgApplicationOwnerByRef (Community Examples)
- Graph Module: Microsoft.Graph.Applications
- Graph Endpoint: POST /applications/{application-id}/owners/$ref
Permissions
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Application.ReadWrite.All and Directory.Read.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Application.ReadWrite.OwnedBy and Directory.Read.All, Application.ReadWrite.All and Directory.Read.All |
Note: Application.ReadWrite.OwnedBy will not be sufficient to add another owner. Consent also to Application.ReadWrite.All.
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
ObjectId | ApplicationId |
RefObjectId | OdataId |