Subscribe to the Non-Human & AI Identity Journal

Who should own offboarding for service accounts and API keys?

Ownership should sit with the system or application team that depends on the identity, but decommissioning needs governance from IAM, PAM or IGA so removal is not optional. A good model ties offboarding to retirement events, project closure and periodic review.

Why This Matters for Security Teams

Offboarding service account and api key is not just an admin task. It is a control point that determines whether access ends when a system is retired, a project closes, or a team changes hands. The business owner often knows when the identity is no longer needed, but IAM, PAM, or IGA must make removal mandatory so decommissioning does not depend on memory or goodwill. NIST’s Cybersecurity Framework 2.0 treats identity lifecycle discipline as part of operational resilience, not a back-office cleanup step.

The risk is not theoretical. NHIMG’s 2025 State of NHIs and Secrets in Cybersecurity found that 91% of former employee tokens remain active after offboarding, showing how easily stale access survives organisational change. For service accounts, the same pattern appears when identities are shared across applications, undocumented, or tied to legacy jobs that no one wants to break. In practice, many security teams discover the ownership gap only after a retired integration still has production access, rather than through intentional decommissioning.

How It Works in Practice

The cleanest model is shared ownership with a hard split in responsibility. The system or application team owns the need for the identity: when the workload is retired, migrated, or replaced, that team initiates offboarding. IAM, PAM, or IGA owns the control that enforces the removal: approval workflow, revocation, audit trail, and confirmation that dependent systems no longer rely on the credential.

That division matters because service accounts and API keys are usually embedded in code, pipelines, schedulers, tickets, or secret stores. If ownership sits only with security, removal can be delayed because security does not know which downstream jobs will fail. If ownership sits only with application teams, decommissioning often becomes optional. NHIMG’s NHI Lifecycle Management Guide frames lifecycle control as a process problem, not just a vault problem.

  • Assign a named business or system owner for every non-human identity.
  • Link offboarding to explicit triggers such as retirement, cutover, project closure, or vendor exit.
  • Require IAM, PAM, or IGA to validate revocation and record completion.
  • Rotate or replace shared secrets before shutdown when multiple workloads depend on one credential.
  • Confirm that CI/CD, schedulers, integrations, and secret stores no longer reference the identity.

This is where the Guide to the Secret Sprawl Challenge becomes relevant: offboarding fails when secrets are duplicated across tools, because a single revocation does not eliminate every copy. Current guidance suggests treating revocation as a control event, not an optional task, and pairing it with evidence that the credential is no longer referenced anywhere downstream. These controls tend to break down in shared-platform environments because multiple teams assume another owner will remove the last live reference.

Common Variations and Edge Cases

Tighter offboarding governance often increases coordination overhead, so organisations need to balance speed against the risk of leaving dormant access behind. That tradeoff is especially visible for long-lived service accounts, third-party API keys, and platform-level automation that supports many teams.

There is no universal standard for this yet, but best practice is evolving toward stronger ownership mapping and shorter credential lifetimes. For ephemeral integrations, the owner may be the pipeline or product team, while a central platform team controls the secret store and revocation workflow. For vendor-managed services, ownership can sit with the internal service sponsor even when the credential itself is issued outside the organisation.

Edge cases usually appear when one identity supports multiple systems, or when the original owner has left and no one can prove dependency. NHIMG’s Top 10 NHI Issues highlights that overuse and duplication are common failure modes, and the practical answer is often to break the shared identity apart before decommissioning. For broader identity governance context, Ultimate Guide to NHIs — What are Non-Human Identities is useful for distinguishing the identity owner from the control owner.

Where teams most often go wrong is assuming that revocation is complete once a secret is deleted from a vault. In reality, stale copies in code, tickets, caches, and runtime configs can keep the identity alive long after offboarding is “done.”

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 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Covers lifecycle and rotation gaps that leave stale non-human access active.
NIST CSF 2.0 PR.AC-4 Access management supports removal of non-human identities when they are no longer needed.
CSA MAESTRO Agentic and workload identity governance requires explicit lifecycle ownership and deprovisioning.

Map every service account and API key to an owner, then revoke and rotate on retirement events.