23 Nov 2026
Service principals.
You offboard people. Do you offboard applications?
A leaver process is built around a person: HR sends a date, the account is disabled, sessions are revoked, licences go back to the pool. An application gets none of that. It has no manager, no contract end and no last day, so the integration a project used in 2023 is still in the tenant in 2026, holding whatever an admin consented to on the day it was installed.
Its identity in your tenant isn't the app itself. It's a service principal, and most of the confusion about "unused apps" comes from treating the two as the same object.
01One blueprint, one identity per tenant
Microsoft's model has two objects. The application object lives only in the tenant where the app was registered (its home tenant) and acts as a template: secrets, certificates and the permissions the app asks for. A service principal is created in every tenant where the app is used, and it is the service principal that defines what the app can actually do there, who can use it and which resources it reaches. A single-tenant app has one. A multitenant app gets a new one each time an admin in another tenant consents.
There are three kinds of service principal: the instance of an application, a managed identity (no application object, credentials handled by Azure) and a legacy one, created before app registrations existed and usable only in its own tenant.
The bottom half of that diagram is the part nobody plans for. It's the subject of section 03.
02Why App registrations shows half the list
An admin recently went looking for an app our Advisor had flagged for tenant-wide permissions nobody used. They opened App registrations, searched by name, and it wasn't there. That's expected: an app registered by a vendor has no application object in your tenant, only a service principal. App registrations lists application objects; the service principals, with their permissions, the consent given and the sign-in information, are under Enterprise applications.
From the other side the same split applies. On one of your own
registrations, Managed application in local directory opens
its service principal, and
Get-MgServicePrincipal -Filter "appId eq '{AppId}'" finds it by
app ID. An inventory of what can act in the tenant starts from the service
principals, never from the registrations.
03The app is deleted. Its identity isn't.
When the home tenant deletes an app registration, its service principal in the home tenant goes with it. Microsoft's note is explicit about the rest: for multitenant applications, service principal objects in other directories will not be deleted. Removing the app's access to your directory is your admin's job, by deleting the enterprise application.
The deletion is also soft. Deleted applications and service principals sit in the deleted items container and can be restored for up to 30 days. So for a month after a vendor retires an integration, they can bring the registration back, and your service principal never lost anything to begin with. After that, it's a leftover with grants that nobody on either side answers for.
04What a service principal can do with nobody signed in
The weight of a leftover depends on what it holds, and there are three different things it can hold:
| Grant | Acts as | Reaches | Who consents |
|---|---|---|---|
| Delegated (scopes) | a signed-in user | only what that user can reach | users, or an admin for all |
| Application (app roles) | itself, no user | all data the permission covers | admin only |
| Directory role | itself, no user | the role's scope, not just Graph | assigned by an admin |
The Graph
permissions overview is blunt about the middle row: an app with
Files.Read.All as an application permission can read any file in
the organization, and only a Privileged Role Administrator or Global
Administrator can consent to it. Permissions that come from a built-in Entra
role don't limit the app to calling Graph at all. Whoever holds a working
secret or certificate for that app gets all of it, with no MFA prompt and no
user to disable.
05"Unused" is a timestamp with caveats
The obvious test for a leftover is the last time it signed in. Entra has it: the service principal sign-in activity report gives the last activity date of every service principal, as a client or a resource, app-only or delegated. It's in preview, and Microsoft warns that the timestamp can include partial sign-ins, so a date alone doesn't prove a token was issued. Read it one way only: no activity for 90 days means unused; a recent date means "look closer", not "in use".
Microsoft's own
Remove
unused applications recommendation uses the same 90 days. It looks at app
registrations, counting use by their service principals in other tenants;
skips managed identities, Microsoft-managed apps and anything created in the
last 90 days; and its sample response lists microsoftEntraWorkloadId
as the licence it requires. Its fix is to soft delete the app, wait 15 days,
then delete it permanently. It answers "which of my registrations is dead", the
vendor's question. The consuming tenant's question, which vendor apps here
still hold grants nobody uses, is the one that doesn't come with a
recommendation.
That's the inventory GraphPaaS builds for every tenant you manage. Each enterprise application with consented permissions is listed with its application permissions, its publisher verification and who owns it: Microsoft, your tenant, or another tenant named by name. The Advisor flags apps holding application permissions or a directory role with no sign-in for 90 days or ever, saying which can reach Global Administrator; unverified third-party apps with risky permissions; and credentials expiring within 30 days (the failure mode in expiring app secrets). Microsoft apps and managed identities are left out of the unused check: nobody can add a secret to them. When the app was registered in another tenant you also run on GraphPaaS, we check whether that registration still exists, and an app whose registration was deleted shows up as an orphan, with what it still holds. For the people side of the same question, see who holds Global Admin.
- Application and service principal objects in Microsoft Entra ID — one application object, one service principal per tenant; the three types; where each shows in the admin center.
- Remove an application registered with the Microsoft identity platform — service principals in other directories are not deleted with the app.
- Deletion and recovery of applications FAQ — soft-deleted apps and service principals restorable for up to 30 days.
- Overview of Microsoft Graph permissions — application permissions reach any data they cover; who can consent; roles not limited to Graph.
- Usage and insights report — service principal sign-in activity, in preview, and its partial sign-in caveat.
- Remove unused applications (preview) — the 90-day rule, its exemptions, the licence in the sample response, the delete-and-wait fix.
Offboard the apps nobody uses.
Every enterprise application with its permissions and owner tenant, and the ones nobody uses, across all your tenants.
See your app inventoryOr ask Claude: "Which apps in this tenant hold application permissions and haven't signed in for 90 days?"