Join our Newsletter — 33% off our NHI Course
Home› Guides› How to find Entra apps and service principals…
Guide Non-Human Identity (NHI)

How to find Entra apps and service principals with no owner: queries, triage and fixes

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 13 min read
On this page

An Entra application or service principal with no owner still holds its credentials, permissions and role assignments, but nobody is accountable for rotating, reviewing or retiring it. Ownerless apps build up as people leave, as admins create apps on behalf of teams, and as enterprise applications are added without anyone named. Finding them in Microsoft Entra ID is less simple than it looks, because an app registration and its enterprise application (service principal) are separate objects with separate owner lists, and many service principals in a tenant are not yours to own at all. This guide gives identity and NHI teams the exact Microsoft Graph queries, the filters that separate real gaps from expected ones, a triage order, and the steps to assign owners and keep them current. For assigning owners to on-premises Active Directory service accounts, see How to assign owners to orphaned service accounts.

This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.

Key takeaways

  • Two objects, two owner lists. The app registration (application object) and the enterprise application (service principal) each have their own owners; an app can be owned on one and ownerless on the other.
  • Not every ownerless service principal is a gap. Microsoft and third-party multi-tenant apps, and managed identities, are expected to have no owners in your tenant; filter them out before counting.
  • Graph can filter on owner count directly. owners/$count eq 0 works on both objects with the ConsistencyLevel: eventual header and $count=true.
  • A disabled owner is no owner. Expand owners and check whether each is still an enabled account, or the report will count leavers as accountable.
  • Two owners plus a team reference. Microsoft recommends at least two owners where possible and the serviceManagementReference property for a team contact that survives staff turnover.

Why Entra ownership differs from Active Directory

In Active Directory, an orphaned service account usually means a user object with a vague description and no manager. In Entra ID, ownership is a formal relationship stored on the directory object, and owners have real rights: Microsoft's documentation states that owners of an enterprise application can manage its single sign-on, provisioning and user assignment, and can add or remove other owners, with the same permissions as an application administrator scoped to that application. That makes ownership both an accountability control and an access path.

PropertyApp registration (application object)Enterprise application (service principal)
Where it livesOnly in the tenant where the app was registeredIn every tenant where the app is used, including yours for third-party and Microsoft apps
What owners controlCredentials (secrets, certificates, federated credentials), redirect URIs, API permissions requested, app rolesTenant-specific configuration: single sign-on, provisioning, user assignment, other owners
Default ownerMicrosoft states the user who registers an application is automatically added as its ownerMicrosoft states default ownership is assigned only when a user without admin roles creates the app registration
Who can be an ownerNon-admin users or service principalsUsers or service principals; groups cannot be owners
Graph endpointGET /applications/{id}/ownersGET /servicePrincipals/{id}/owners

The default rules explain most gaps. An administrator who registers an app for a team becomes its owner, then moves role or leaves. An app added through an admin-led flow often gets a service principal with no owner at all. The App Registration vs Service Principal guide explains the object model in more depth.

Before you start

  • Permissions: listing owners needs Application.Read.All at least. Microsoft notes that when the caller cannot read an owner's object type, Graph still returns the owner but with only @odata.type and id populated. Add User.Read.All so you can see owner names and whether accounts are enabled.
  • Roles for delegated access: Global Reader or Directory Readers is enough for discovery. Assigning owners later needs Application Administrator or Cloud Application Administrator, or an existing owner.
  • Your tenant ID: you need it to separate apps registered in your tenant from those registered elsewhere.
  • Somewhere to record results: a spreadsheet or your NHI inventory, with object ID, app ID, display name, object type, owner count and triage outcome.

Step 1: find app registrations with no owner

The application resource documents $filter support for owners/$count eq 0, ne 0, eq 1 and ne 1, as advanced queries. Send the request with the ConsistencyLevel: eventual header:

1 Sample only, based on the public documentation cited. Assess it independently against the current official documentation, test outside production and back up first.

Sample 1
GET https://graph.microsoft.com/v1.0/applications?$filter=owners/$count eq 0&$count=true&$select=id,appId,displayName,createdDateTime,signInAudience,serviceManagementReference
ConsistencyLevel: eventual

Run it again with owners/$count eq 1 to list single-owner apps, which become ownerless the day that person leaves. Every app registration in your tenant is yours, so every result here is a real gap, unlike the service principal results in Step 2. Keep signInAudience: an ownerless app set to AzureADMultipleOrgs may be used by other tenants, and its credentials matter beyond your own.

Step 2: find service principals with no owner, then filter

Microsoft's Graph applications tutorial gives this request for service principals with no owner or one owner:

Sample 1
GET https://graph.microsoft.com/v1.0/servicePrincipals?$filter=owners/$count eq 0 or owners/$count eq 1&$count=true
ConsistencyLevel: eventual

Add $select=id,appId,displayName,servicePrincipalType,appOwnerOrganizationId,accountEnabled,tags so you can classify each result. The raw list in most tenants is dominated by service principals you are not expected to own. Classify them with these properties:

CategoryHow to identify itOwnerless expected?Action
Your own appsservicePrincipalType is Application and appOwnerOrganizationId equals your tenant IDNoAssign owners on both the service principal and its app registration
Third-party multi-tenant appsApplication type, appOwnerOrganizationId is another tenant (not Microsoft)No owner on the registration is possible, but you still need a business ownerAssign an owner on the service principal for its tenant configuration and access decisions
Microsoft first-party appsappOwnerOrganizationId is a Microsoft tenantYesExclude from the gap count; govern through consent and Conditional Access instead
Managed identitiesservicePrincipalType is ManagedIdentityUsually; Microsoft states these cannot be updated or modified directlyTrack ownership through the Azure resource they belong to, not the Entra object
Legacy service principalsservicePrincipalType is Legacy, no app registrationNoHigh priority: editable credentials with no registration to govern them
Agent identitiesservicePrincipalType is ServiceIdentityNoAssign an accountable owner; see the Microsoft Entra Agent ID Guide

Third-party apps are the most often missed. Nobody in your tenant can own the vendor's registration, so teams assume ownership does not apply, yet someone still decides who can use the app, which permissions were consented and when it should be removed. That person is the service principal owner, or the named contact in your inventory.

Step 3: find apps whose owners have left

An owner count of one or two says nothing about whether those owners are still employed. Expand owners and check each account:

Sample 1
GET https://graph.microsoft.com/v1.0/applications?$select=id,appId,displayName&$expand=owners($select=id,displayName,userPrincipalName,accountEnabled)

The same $expand works on /servicePrincipals. Note that the list-owners reference states $expand is not supported together with advanced query parameters, so do not combine this request with the $count filter; page through all objects and evaluate in your script. Flag any app where every user owner has accountEnabled set to false or no longer resolves, and treat it as ownerless. Where an owner is itself a service principal, record it, then check that service principal's own owners: an app owned only by another ownerless app has no human accountable for it.

Join this with your HR leaver feed if you have one. The guide What to do when a service account owner leaves covers the hand-over process once you have the list.

Step 4: rank what you found

Ownerless apps are not equally risky. Fix the ones that combine no owner with power or live credentials first. For each candidate, collect:

PriorityProfileTarget
1No owner, plus privileged application permissions, directory roles or Azure Owner or ContributorOwner assigned or app disabled within days
2No owner, active credentials and recent sign-insOwner found through usage evidence within two weeks
3No owner, no sign-ins in 90 daysRoute to the stale app retirement process
4Single owner, any profileSecond owner added during the next review cycle

These targets are suggested starting points. Set your own in policy and apply them consistently.

Step 5: find the right owner

Nobody volunteers to own an unknown app, so collect evidence before asking. Useful clues, in rough order of reliability:

  1. The notes and serviceManagementReference fields: may name a team or a service record.
  2. Audit history: the Entra audit log shows who created the app and who last changed credentials or owners. Microsoft's security operations guidance names the activity Add owner to application in the ApplicationManagement category. Audit retention is limited, so this works best for recent apps or where logs are exported to a SIEM.
  3. Who uses it: users and groups assigned to the enterprise application, and the resources it calls in sign-in logs, usually point to the business team.
  4. Redirect URIs and names: hostnames in redirect URIs often match an internal service with a known owner.
  5. The former owner's manager: where the last owner has left, their manager or team lead inherits the decision.

If no owner is found within your deadline, disable the service principal (accountEnabled set to false) with a note explaining why and how to request re-enablement. Microsoft states that when a service principal is disabled no users can sign in to the app. A disabled app that nobody asks about for a full business cycle can then be deleted under your retirement process; one that someone urgently asks about has just found its owner.

Step 6: assign owners and record the team

  • Assign on both objects for your own apps. Graph: POST /applications/{id}/owners/$ref and POST /servicePrincipals/{id}/owners/$ref, each with a body of {"@odata.id": "https://graph.microsoft.com/v1.0/directoryObjects/{owner-object-id}"}. For third-party apps, assign on the service principal only.
  • Add two named people. Microsoft recommends at least two owners where possible.
  • Set serviceManagementReference: point it at the service or asset record for the owning team. Microsoft describes this as ensuring a team contact exists even if an individual leaves.
  • Prefer the admin centre for SAML apps. Microsoft notes that owners added through Graph or PowerShell cannot manage some settings, including attributes and claims, SAML certificate properties and token encryption, so assign owners of single sign-on apps through the Microsoft Entra admin centre if they need those settings.
  • Do not make owners more powerful than intended. Microsoft warns that an application may have more permissions than its owner, and an owner could act as the application. For apps with high-privilege application permissions, choose owners whose own access is comparable, and protect their accounts accordingly.

Keeping it fixed

  • Make ownership a creation gate: restrict who can register apps, and require two owners and a service reference in the request form before an admin creates an app for a team.
  • Re-attest regularly: run owner attestation on apps each quarter or half-year; see the NHI Ownership Attestation Campaigns Guide.
  • Alert on ownership changes: monitor Add owner to application and related owner removals outside change management, as Microsoft's security operations guidance recommends.
  • Schedule the queries: run Steps 1 to 3 weekly from an automation identity with read-only permissions and feed results to your ticketing system.

Detection and measurement

  • Ownerless in-scope apps: count of your own and third-party app objects with no enabled owner, trending to zero.
  • Single-owner share: percentage of in-scope apps with exactly one enabled owner.
  • Privileged ownerless apps: count of priority 1 items; this should be zero outside a short remediation window.
  • Coverage of serviceManagementReference: share of your own app registrations with a team reference set.
  • Time to re-own after a leaver: days from an owner's departure to a replacement owner being assigned.

Framework mapping

FrameworkReferenceHow it applies
NIST CSF 2.0ID.AM-02Inventory of software and services, including the apps that act in your tenant
NIST CSF 2.0PR.AA-01, PR.AA-05Managing service identities and credentials, and reviewing their permissions
NIST CSF 2.0GV.RR-02Assigned and understood responsibilities, here the named owner of each app
NIST SP 800-53 Rev 5AC-2, CM-8Account management (including system accounts and their responsible parties) and component inventory

Common failure patterns

  • Checking only one object: teams fix owners on the enterprise application and leave the app registration, where credentials are managed, ownerless.
  • Counting Microsoft apps as gaps: an unfiltered report shows hundreds of ownerless service principals, the number is ignored, and the real gaps hide inside it.
  • Treating disabled owners as owners: owner counts stay healthy while every listed owner has left.
  • Making the helpdesk the owner of everything: one shared administrator on hundreds of apps meets the count but gives nobody who can judge whether the app is still needed.
  • Ignoring third-party apps: consented vendor apps with broad permissions keep running long after the business stopped using them.

Practitioner checklist

  • Grant the reporting identity Application.Read.All and User.Read.All, read only.
  • Query app registrations with owners/$count eq 0 and eq 1.
  • Query service principals the same way and classify by type and appOwnerOrganizationId.
  • Exclude Microsoft first-party apps and track managed identities through their Azure resources.
  • Expand owners and treat apps whose owners are all disabled or deleted as ownerless.
  • Rank by permissions, roles, credentials and recent sign-ins.
  • Find owners from audit history, usage and redirect URIs; disable apps nobody claims by the deadline.
  • Assign two owners on both objects for your own apps and set serviceManagementReference.
  • Alert on owner changes and rerun the queries on a schedule.

Standards and references

Related NHI Mgmt Group resources: NHI Ownership Guide · How to find and remove stale service principals in Entra ID · Entra ID Applications and Consent Guide · How to assign owners to orphaned service accounts

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.