Get-MgApplicationOwner is a Microsoft Graph PowerShell cmdlet that retrieves the owner(s) of a specific application registration in Microsoft Entra ID (Azure AD). Application owners are users or service principals responsible for managing the app—such as maintaining secrets, certificates, permissions, or general configuration.
This cmdlet helps admins quickly identify who owns an app, which is essential for governance, audits, and app lifecycle management.
Try the M365Corner Microsoft 365 Reporting Tool — your DIY pack with 20+ out-of-the-box M365 reports for Users, Groups, and Teams.
You can use Get-MgApplicationOwner to automate ownership discovery and reporting, especially when your tenant contains many app registrations. Key benefits include:
Before using this cmdlet, ensure you have Graph PowerShell installed and connected with suitable permissions:
Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "Application.Read.All"
If you're doing ownership modifications later, use Application.ReadWrite.All.
Important note: Get-MgApplicationOwner does not support the -Filter parameter. Using it triggers a Request_UnsupportedQuery error.
This cmdlet requires the ApplicationId (Object ID) of the app registration.
Basic syntax:
Get-MgApplicationOwner -ApplicationId <String>
You can pipe results into Get-MgUser to return human-friendly owner details like UPN or DisplayName.
This example retrieves owner of an application with a specified ApplicationId and outputs user marked as application owner (identified by the provided ApplicationId) and displays Displayname and UserId of application owner using Get-MgUser cmdlet.
Get-MgApplicationOwner -ApplicationId "2a1b3c4d-5678-90ab-cdef-1234567890ab"
This example retrieves multiple owners of an application with a specified ApplicationId, loops through the owners list, and outputs the DisplayName, UserPrincipalName, and User ID of the application owners using Get-MgUser cmdlet.
$owners = Get-MgApplicationOwner -ApplicationId
foreach($owner in $owners){
Get-MgUser -UserId $owner.Id | Select-Object Id, DisplayName, UserPrincipalName
}
| Key Point | Details |
| Cmdlet Name | Get-MgApplicationOwner |
| Purpose | Retrieves owner(s) of an Entra ID application |
| Required Scope | Application.Read.All (or Application.ReadWrite.All) |
| Primary Parameters | ApplicationId |
| Automation Benefit | Enables ownership auditing and reporting at scale |
| Use Case | Security reviews, governance checks, ownership validation |
Did You Know? Managing Microsoft 365 applications is even easier with automation. Try our Graph PowerShell scripts to automate tasks like generating reports, cleaning up inactive Teams, or assigning licenses efficiently.
Ready to get the most out of Microsoft 365 tools? Explore our free Microsoft 365 administration tools to simplify your administrative tasks and boost productivity.
© Your Site Name. All Rights Reserved. Design by HTML Codex