An application identity can outlive its owner
A Microsoft 365 tenant contains app registrations created for retired integrations, pilot projects and contractors. Human accounts may have been disabled, yet application permissions can continue granting unattended access to tenant data through valid service-principal credentials.
Locate the trust boundary
Inventory the enterprise application, its app registration, service principal, app-role assignments, delegated grants, application permissions, owners and credential types. Confusing a visible display name with the actual object identifier can lead reviewers to disable the wrong integration.
A dormant connector can still read tenant content
An old reporting connector still has an application permission to read mail or files across the tenant. Its certificate is held in a forgotten automation repository, and no current business service has a named person accountable for the remaining consent.
Design the control around this case
Join app permissions with actual sign-in activity, downstream workload dependencies and ownership records. Use narrow scopes, managed identities where appropriate, credential rotation and review of consent grants; stage removal because a dormant token may still be used by a monthly process.
Records that support the conclusion
Capture application and service-principal object IDs, consent history, app-role assignments, credential end dates, service-principal sign-ins, API audit activity and the specific integration’s business owner. Keep export timestamps and preserve a baseline before revoking access.
Positive test: authorised work
Test a nominated payroll or reporting connector with only the resource permissions it needs. Confirm its scheduled read succeeds and that the monitoring shows the expected app identity rather than a shared generic administrator account.
Verify the denial at its source
Use an isolated test principal to request an unrelated mailbox or SharePoint resource. It must be denied after excessive permissions are removed; verify that a parallel legacy grant or additional service principal does not still authorise the request.
The difficult case at 2 am
Some backup, eDiscovery and tenant management tools need broad access. For these, require a documented procurement rationale, independent consent approval, higher-fidelity monitoring, vendor constraints and a repeat review aligned to the service contract.
Separate decision rights from configuration
Identity operations manages credentials and grant changes; application owners prove business need; the security team checks data scope. A missing owner is not a reason to preserve a permanent tenant-wide capability without review.
What to review at the next checkpoint
Show counts of privileged applications with no accountable owner, unused credentials, long-lived secrets, broad grants, unreviewed consent events and failed service tests after remediation. Group the results by affected resource rather than treating all apps as equally consequential.
A defensible release decision
Retire or narrow an application identity only after its dependency is understood, but do not let unknown ownership indefinitely suspend a risk decision. Record the evidence, staged change, rollback and who formally accepts residual access.
Retirement proof for a service principal
Tenant-wide grants deserve particular scrutiny because they may survive personnel turnover. Review both application permissions exercised without a user and delegated permissions exercised by a signed-in person; they create different approval and monitoring questions. On Microsoft 365, the display name is not a unique identifier, and multiple service principals can support similarly named integrations. Start with object IDs and effective consent, then compare the permissions to actual workload activity. If an old certificate has no recorded owner, search the automation inventory and consult the application team before revocation. The right outcome may be replacement by a managed identity or narrower access, not merely deleting a mysterious object.
Rehearsing the month-end integration dependency
A staged retirement can avoid breaking a monthly finance integration while still reducing risk. First block new credential issuance, add monitoring of the existing principal, confirm a supported replacement, then revoke old permissions at a controlled interval. Check whether cached tokens remain valid during their lifetime and what evidence shows the target resource no longer accepts them. Test access to both a permitted reporting file and a prohibited unrelated mailbox using a sandbox principal. Keep the action log with the responsible application owner and change approval. A final sign-off should refer to effective grants and denied requests, not the presence or absence of a name in an admin console.
The hardest review concerns a principal that has not signed in recently but still supports a monthly finance job. The application owner should name a specific reporting run, the resources it needs and the last date it executed. Record a temporary monitoring period, then demonstrate that the replacement connector reads the necessary dataset while a test request for an unrelated mailbox fails. Review both delegated grants and application permissions; revoking a secret without removing consent is not the same as removing authority. A directory object identifier, not the display name, anchors the change record.
Further decision and testing considerations
Application identity reviews are often delayed because a principal’s name reveals little about its real work. Build a small reconciliation table containing the object ID, owning team, consented permission, credential expiry, last observed activity and a link to the automation that uses it. Investigate whether application permissions were approved by a tenant administrator long before the present process for consent existed. If an integration has no recent sign-in event, check whether it runs quarterly, uses a different identity or authenticates by a method excluded from the available log. Those uncertainties should be resolved before revocation; they should not become an excuse to keep broad access indefinitely. The critical question is which mailboxes, files or users the principal can access today and which business requirement justifies that reach.
A change sequence should differentiate observation from removal. Notify the nominated owner, narrow the application’s permissions in a controlled test, confirm its legitimate API job still works, and schedule withdrawal of the old grant. Recheck token issuance and resource access after propagation; a password or secret rotation may not invalidate every existing token immediately. Document the exact point at which the receiving service began denying the retired identity. Where high privileges remain for a backup or discovery product, put the grant under documented independent approval and heightened monitoring. This is more defensible than a tick box asserting that all ‘service accounts’ were reviewed, because it shows how a particular automated authority was constrained.
Additional implementation consideration
Before final revocation, check whether the service principal has multiple credential types and whether a supplier still holds one in a separate automation platform. A consent grant can remain effective through token use even when the application owner believes a secret was retired. Collect the actual resource API decision after the change and compare it with the identity log; record when the old token ceased working and whether a batch job recovered safely. If an integration fails, restore only the minimum required access and assign a named remediation owner rather than recreating the former tenant-wide grant.
Approval evidence for permission removal
- Map the workflow: Inventory the enterprise application, its app registration, service principal, app-role assignments, delegated grants, application permissions, owners and credential types. Confusing a visible display name with the actual object identifier can lead reviewers to disable the wrong integration.
- Identify the unsafe path: An old reporting connector still has an application permission to read mail or files across the tenant. Its certificate is held in a forgotten automation repository, and no current business service has a named person accountable for the remaining consent.
- Build the control: Join app permissions with actual sign-in activity, downstream workload dependencies and ownership records. Use narrow scopes, managed identities where appropriate, credential rotation and review of consent grants; stage removal because a dormant token may still be used by a monthly process.
- Observe an authorised result: Test a nominated payroll or reporting connector with only the resource permissions it needs. Confirm its scheduled read succeeds and that the monitoring shows the expected app identity rather than a shared generic administrator account.
- Test a prohibited result: Use an isolated test principal to request an unrelated mailbox or SharePoint resource. It must be denied after excessive permissions are removed; verify that a parallel legacy grant or additional service principal does not still authorise the request.
- Record the exception and owner: Some backup, eDiscovery and tenant management tools need broad access. For these, require a documented procurement rationale, independent consent approval, higher-fidelity monitoring, vendor constraints and a repeat review aligned to the service contract.
- Decide on evidence: Retire or narrow an application identity only after its dependency is understood, but do not let unknown ownership indefinitely suspend a risk decision. Record the evidence, staged change, rollback and who formally accepts residual access.
Reading and reference context
- https://www.cyber.gov.au/resources-business-and-government/essential-cyber-security/essential-eight
- https://www.nist.gov/cyberframework
Discuss the operating boundary with Next Defence
Next Defence can help map persistent Microsoft 365 application identities to their real workloads, establish an owner for unclaimed grants and test a staged permission retirement against approved business processes. The scope should include consent records, workload evidence and a controlled rollback, not simply a list of stale display names.
Related perspective: The service-principal analysis traces tenant-wide application identities that outlive their owners; the OAuth review narrows the question to delegated mailbox grants and stale legal-practice integrations. Shadow OAuth Application Review for Microsoft 365.
Explore the relevant Next Defence service to discuss an appropriately scoped assessment.