Add-AzureADServicePrincipalOwner
This article provides migration details from Add-AzureADServicePrincipalOwner command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Add-AzureADServicePrincipalOwner
- Azure AD Module: AzureAD
- Microsoft Graph Command: New-MgServicePrincipalOwnerByRef (Community Examples)
- Graph Module: Microsoft.Graph.Applications
- Graph Endpoint: POST /servicePrincipals/{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 |
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
ObjectId | ServicePrincipalId |
RefObjectId | OdataId |