Get-MgApplicationOwnerCount is a Microsoft Graph PowerShell cmdlet that returns the number of owners assigned to a specific Azure AD (Entra ID) application. Instead of listing owners one by one, it gives you a quick numeric count.
Try the M365Corner Microsoft 365 Reporting Tool — your DIY pack with 20+ out-of-the-box M365 reports for Users, Groups, and Teams.
This cmdlet is super handy for automation and governance. With one line, you can:
Before using the cmdlet, connect to Microsoft Graph with the right permissions:
Install-Module Microsoft.Graph -Scope CurrentUserConnect-MgGraph -Scopes "Application.Read.All"Also note: -ConsistencyLevel "Eventual" is required for count and advanced queries in Graph PowerShell.
Basic syntax (count requires consistency level):
Get-MgApplicationOwnerCount -ApplicationId <String> -ConsistencyLevel <String>
You pass the ApplicationId of the app registration, and Graph returns the number of owners. Optionally, use -Filter to count owners matching a specific condition.
Get-MgApplicationOwnerCount -ApplicationId "12345678-90ab-cdef-1234-567890abcdef" -ConsistencyLevel "Eventual"
This returns a single number showing how many owners are tagged on that application.
Get-MgApplicationOwnerCount -ApplicationId "12345678-90ab-cdef-1234-567890abcdef" -ConsistencyLevel "Eventual" -Filter "displayName eq 'John Doe'"
This counts only the owners whose display name matches John Doe, useful for verifying specific ownership assignments.
| Key Point | Details |
| Cmdlet Name | Get-MgApplicationOwnerCount |
| Purpose | Counts the number of owners assigned to an Entra ID application |
| Required Scope | Application.Read.All (or higher) |
| Primary Parameters | ApplicationId, ConsistencyLevel, Filter (optional) |
| Automation Benefit | Enables fast ownership audits across many apps |
| Use Case | Detecting apps with zero owners, validating compliance rules |
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