Join our Newsletter — 33% off our NHI Course
Home› FAQ› NHI Lifecycle Management› What should teams do when a user leaves…
NHI Lifecycle Management

What should teams do when a user leaves but their Windows profile may still hold saved secrets?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 11, 2026 Domain: NHI Lifecycle Management

Revoke or rotate the downstream credentials that were likely stored locally, not just the primary sign-in used on the device. Offboarding must cover cached access because the endpoint can outlive the employee relationship and keep working credentials behind after account changes.

What teams should do before a departing user is fully offboarded

Windows profile data is not just personalization. It can retain browser sessions, cached tokens, mapped resources, and application-specific credentials that survive account disablement. The practical response is to treat the endpoint as part of the access path and remove or invalidate whatever the profile may still unlock, not merely the primary account.

That means you should verify which apps stored secrets locally, whether those secrets can still authenticate elsewhere, and whether the device or profile is going to be reused, reimaged, or preserved for forensics. If the profile is retained, assume some access material may remain reachable unless it is explicitly rotated or revoked.

Teams also need a clean ownership decision. Device offboarding, identity offboarding, and application secret rotation are related but not identical tasks, and the last one is often missed because it sits outside the normal Windows deprovisioning flow. The safest posture is to make local secret discovery and downstream credential invalidation a standard part of exit handling.

Why saved Windows secrets create residual access risk

Residual risk exists because a departing user may lose interactive sign-in but still leave behind material that can authenticate an application, cloud service, VPN, or internal resource. A saved credential in a profile can become a silent reuse path, especially when the app token, API key, or cached session was never tied to the employee lifecycle.

That is why the Secret Sprawl Challenge is a useful lens here: secrets hidden in ordinary user environments behave like unmanaged access. The same pattern appears when long-lived credentials are left on endpoints and nobody revisits them during offboarding.

Failure mechanism: the organisation disables the directory account but does not invalidate locally stored secrets, refresh tokens, or application credentials that were cached in the Windows profile. Those artifacts can continue to work until they expire, are discovered, or are manually revoked.

Impact: the former user, or anyone who later gains access to the machine or profile, may still reach mail, source code, cloud portals, internal apps, or other protected services. That turns offboarding into a partial control failure rather than a completed access removal.

What to revoke, rotate, and verify after offboarding

Practitioners should start from the question, “What did this profile help authenticate?” rather than “Did we disable the person’s account?” If the answer includes browser-saved passwords, sync clients, VPN profiles, desktop apps, scripts, or cached tokens, the downstream credentials need separate treatment.

For common enterprise patterns, this usually means rotating any secrets that could have been stored locally, invalidating sessions and refresh tokens where supported, and checking whether the same credential was reused in multiple tools. A saved credential can outlive the user relationship, so the control objective is not just account closure, it is access-path closure.

When the credential is an API key or similar bearer secret, the lifecycle matters as much as the endpoint. API Key Management Guide is relevant because it frames the response around scoping, revocation, and rotation when a key may have been exposed or stored in an unsafe place.

For the broader lifecycle view, Secrets Management Guide is the right companion resource. It reinforces the operational rule that secrets should be centrally managed, short-lived where possible, and rotated when their exposure window changes.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01 — Improper OffboardingDeparting users can leave behind secrets in Windows profiles.
NHI-02 — Secret LeakageSaved profile data can retain secrets after account closure.
NHI-07 — Long-Lived SecretsResidual profile credentials are risky when they remain valid after offboarding.
Recommendation — Revoke or rotate credentials tied to the departed user and remove lingering access paths. Inventory and rotate any secrets that may have been stored on the endpoint. Replace durable credentials with shorter-lived or centrally revocable secrets.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementCredential lifecycle must cover revocation and rotation after user departure.
AC-2 — Account ManagementOffboarding must remove accounts and related access pathways promptly.
AC-6 — Least PrivilegeResidual local secrets can preserve more access than the user should retain.
Recommendation — Rotate or revoke authenticators when user access is terminated. Terminate accounts and associated access rights at separation. Limit credentials so stored artifacts cannot outlive need-to-know.

Practitioner Guidance

What to prioritise: start with any secret that can still authenticate to production or sensitive internal systems. If a local credential can reach live services, rotate or revoke it before spending time on low-value cleanup such as cosmetic profile removal.

What to verify: confirm whether the user profile contained browser passwords, synced sessions, SSH material, VPN artifacts, application tokens, or saved application logins. Then verify that each dependent service actually invalidated the old credential, not just the user account.

Common mistake: treating endpoint wipe or account disablement as complete offboarding. That leaves a gap when the sensitive material lived in the profile, not only in the directory.

Practitioner takeaway: exit handling is only complete when you can show that the old sign-in path and every likely locally stored credential path have both been cut off.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 11, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org