A hybrid directory often contains identities that no longer belong clearly to a person or application. A migration may retire the original payroll service yet leave its connector account, a scheduled task, a certificate and a cloud application grant active. The identity can continue to work even when nobody on the current IT team knows who approved it. That is not merely untidy inventory; it is an authorisation gap.
This review method is for an organisation operating both an on-premises directory and a cloud identity platform. It is a governance and defensive verification exercise, not instructions to enumerate or use third-party credentials. Make changes through approved administration channels and avoid disabling critical workloads without an owner and rollback route.
Identify the identities that actually perform work
Start with service principals, managed identities, traditional directory service accounts, scheduled-task identities and application passwords stored in infrastructure configurations. Add identities owned by outsourced support providers and legacy applications. Different technologies use different names; the review should cover every non-human identity capable of authenticating or exercising a permission.
Build a register with account identifier, directory of origin, application purpose, sponsor, technical owner, authentication method, privileges, dependencies, expected use pattern, expiry or review date and an emergency contact. Separate the identity’s creator from the person currently accountable for it. A six-year-old description field naming a former employee does not make that employee an appropriate owner.
Correlate the register with infrastructure and application inventories. A cloud application with an active secret and no recorded owner may still be invoked from a server that the modern cloud team has never managed. Confirm whether a service account exists in multiple directories or is synchronised, and whether disabling one representation affects another.
Reconcile identities against actual activity
Examine sign-in logs, service authentication events, recent changes, secret usage and access reviews for a period appropriate to the system. Make the result specific: “no authentication was recorded during the available 30-day log window” differs from “the account is unused”. Consider low-frequency jobs that run quarterly, scheduled financial reports and disaster-recovery-only identities before making an inactivity decision.
Review the resource permissions rather than trusting an account’s name. A reporting connector might have global directory administrative rights it never needs, or a retired migration identity might retain access to sensitive storage. List the actions it can take and compare them with the documented business function. A service identity without interactive login rights can still be dangerous if it can export a database or modify tenant-wide settings.
Identify authentication that bypasses centrally managed secret controls: embedded passwords in old scripts, certificates stored without lifecycle ownership, keys copied to vendor workstations or credentials shared between unrelated services. The goal is to migrate to appropriately scoped managed identities or controlled secrets where supported, not to replace one unmanaged password with another.
Classify unknown ownership without guessing
When the original system has been retired, appoint an investigation owner who can find the current dependency, confirm a replacement or approve decommissioning. Require evidence from change records, application owners and workload logs before concluding an identity is safe to remove. If the operating team cannot identify the function, use a staged restriction in a controlled change window rather than an immediate deletion.
Record exceptions explicitly. A service that cannot use a modern identity method may require a short-lived credential and monitoring while it is replaced. Give the exception a responsible sponsor, technical mitigation, review date and decommissioning plan. “Vendor says it needs Domain Admin” is not a sufficient control justification without a documented, constrained requirement.
For shared accounts, determine whether attribution can be improved without disrupting the application. Where separate workload identities are possible, migrate and retire the shared credential. Where they are not, add an approved privileged-access process and independent logging so the organisation can distinguish which job or administrator initiated the action.
Run an authorised ownership challenge
Select an inherited account attached to a completed migration. Ask the recorded sponsor to describe its current purpose, the systems it reaches, who can change its credentials and what failure would occur if it stopped authenticating. Compare that response with actual logs and system configuration. If no sponsor can answer, the ownership test has failed even if the credential continues to work.
In a test environment, reproduce one representative service operation using a newly scoped workload identity. Confirm the task works without privileges beyond its defined purpose. Next attempt an out-of-scope operation with that test identity; the intended outcome is a denial recorded by the enforcing resource. This shows that replacement access was restricted, rather than simply copied from an overprivileged account.
Before modifying the production identity, prepare a change request with dependency checks, an agreed maintenance window, monitoring responsibilities and a restoration method. If the account supports a critical service, define a non-destructive observation phase and an accountable business owner for the cutover.
Handle credentials and retirement deliberately
Rotate a live service secret through a documented transition: provision the new credential, update each known dependency, confirm expected authentication, withdraw the old credential and monitor for attempts using it. Where dual credentials cannot coexist, schedule and test a supported alternate sequence. Do not paste secrets into incident tickets or attach plain-text credentials to the register.
For retirement, remove application grants, group memberships, certificates and stored secret references in addition to disabling the directory object. Verify that old scripts or recovery procedures cannot recreate the identity through an automation account. Retain the audit history necessary to explain who authorised the retirement and why.
If a removed account unexpectedly affects a workload, invoke the approved rollback and record the dependency that the discovery phase missed. A restored account may need additional monitoring until the application owner remediates the undocumented connection. Treat this as a gap in inventory and change management, not as evidence that old identities should never be removed.
Report the useful outcomes
Summarise identities by ownership quality, privilege, last observed use, credential age, business criticality and proposed treatment. Prioritise accounts with broad rights and unknown owners before low-risk identities with well documented purposes. Show the gap between accounts present and accounts independently verified, because a completed spreadsheet can conceal unsupported assumptions.
Define closure evidence for each remediation: business owner approval, tested replacement, reduced permissions, secret-rotation confirmation, disabled old access and monitored operating result. Review the register after acquisitions, directory migrations, new SaaS integrations and significant staff departures.
Worked investigation: the retired migration connector
Consider a fictional service principal created two years ago to move data from an on-premises directory into a new cloud application. The migration project closed, but a sign-in report shows that the identity still obtains tokens sporadically. Nobody on the current application team recognises the name. It would be unsafe to delete the account immediately, but equally unsafe to renew its long-lived secret without investigating.
Begin by locating the original change ticket, migration runbook and hosting configuration. Check whether the account is called from a scheduled task or retained disaster-recovery plan. Compare the last observed authentication with the workload host, permission grants and application consent history. An identity whose display name says “migration” may have been reused for routine reporting; the register must describe present function, not historical intention.
Reproduce the required data exchange with an isolated test application. If no application owner claims the exchange, appoint a temporary investigation sponsor with authority to restrict and observe the identity. Document what would happen if each permission were removed, then move to an approved staged change. A broad tenant-level administrative grant should not be preserved just because a vendor previously used it during an installation.
For a confirmed remaining dependency, create a replacement identity scoped to that one workload and record a named business owner. Test ordinary operation and a deliberately forbidden resource access. The second attempt must be rejected by the target system. Only after the replacement works should the original credential be revoked and its stored references removed. If an old scheduled job fails, link the error to the dependency and handle it through the documented rollback procedure.
Close by checking that the migration connector cannot regain its grants through an old automation script. Record the exact identity removed, new identity owner, observed operation, revoked credentials and date for the next review. The evidence should be readable by a future directory administrator who has never heard of the original migration project.
Questions an auditor should ask before closing the account
Can the present business owner explain why each permission is still required? Does the application inventory identify the host and job that use the credential? Are there workload logs showing a recent approved business transaction rather than merely a token issuance? Is the authentication method appropriate for the platform, and can credentials be changed without an undocumented overnight outage? These questions should be answered with a record reference, not a verbal assurance.
The reviewer should examine at least one identity whose owner changed during the year and one whose related application was retired. A current contact name pasted into the service account description does not establish that the new owner tested the dependency. Ask for evidence of that person’s acceptance, the observed access scope and a next review date. If the review uncovers an unexpectedly privileged account, escalate its remediation to the service owner before changing it. A good result is one that a different engineer can verify independently after the original investigators leave.
The objective is to ensure that every powerful non-human identity belongs to a current business purpose and can be changed without guesswork. A service account should not be allowed to outlive the service while keeping its old privileges simply because its password has never caused an obvious incident.
For hybrid directories, the reviewer should also check how identity synchronisation affects retirement. Disabling an on-premises account may not immediately revoke a cloud application token, while deleting an object in the wrong directory can disrupt the record used for audit. Record which system is authoritative, which tokens can be revoked, and what delay is expected before every access route stops working. A completed migration sign-off should therefore include the synchronisation path and the downstream application’s observed denial, not only the status of the original directory object.
Sources and further reading
How Next Defence can help
Find service accounts without an active business sponsor through a cloud, identity and data security review. Directory and application owners should demonstrate the access path, rotation responsibility and safe disablement sequence.