title | description | ms.service | ms.topic | ms.date | ms.author | manager | author | ms.reviewer |
---|---|---|---|---|---|---|---|---|
Add-AzureADServicePrincipalOwner |
This article provides migration details from Add-AzureADServicePrincipalOwner command to Microsoft Graph PowerShell. |
active-directory |
reference |
12/18/2023 |
eunicewaweru |
CelesteDG |
msewaweru |
stevemutungi |
This article provides migration details from Add-AzureADServicePrincipalOwner command to Microsoft Graph PowerShell.
- 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
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.
Azure AD Name | Microsoft Graph Name |
---|---|
ObjectId | ServicePrincipalId |
RefObjectId | OdataId |