Subscribe to the Non-Human & AI Identity Journal
Home FAQ Agentic AI & Autonomous Identity Who should own offboarding when an AI agent…
Agentic AI & Autonomous Identity

Who should own offboarding when an AI agent is retired or replaced?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated June 7, 2026 Domain: Agentic AI & Autonomous Identity

Ownership should sit with the workflow or system that created the agent, not with HR by default. The revocation process must remove delegated access, inherited credentials, and connected tool permissions together, otherwise a decommissioned agent can remain operational in the background.

Why This Matters for Security Teams

Retiring an AI agent is not a paperwork exercise. The owner of the workflow, platform, or service that created the agent needs to drive offboarding because that team understands the agent’s tool chain, secret stores, delegated scopes, and downstream integrations. If HR or a generic identity queue handles it alone, revocation often stops at the user record while machine access remains live. That gap is exactly where autonomous software becomes a lingering security condition rather than a decommissioned asset. Current guidance from the OWASP Agentic AI Top 10 and NIST AI Risk Management Framework points toward explicit accountability for agent lifecycle risk, not shared ambiguity. NHIMG research shows why this matters operationally: 91% of former employee tokens remain active after offboarding, according to The 2025 State of NHIs and Secrets in Cybersecurity, which is a close analogue for agent retirement failures. In practice, many security teams discover offboarding gaps only after an agent is still calling APIs long after the business thinks it has been shut down.

How It Works in Practice

The cleanest model is a named system owner with a control checklist, while security and IAM provide enforcement. That owner should initiate retirement, confirm replacement or shutdown, and verify that every associated permission is revoked in one coordinated event: delegated access, service principals, API keys, refresh tokens, vault entries, MCP connectors, queue subscriptions, and any inherited RBAC grants. For agentic workloads, static role cleanup is not enough because the agent may have been operating through dynamic, goal-driven behaviour that changed which tools it touched over time. The better pattern is intent-based authorisation at runtime, short-lived JIT credentials, and workload identity that can be invalidated at the cryptographic root rather than by manual account deletion. For design context, NHIMG’s OWASP NHI Top 10 and the NHI Lifecycle Management Guide both reinforce that lifecycle control must extend to secrets, not just identities. External implementation guidance from the CSA MAESTRO agentic AI threat modeling framework also aligns with treating agent retirement as a threat containment step, not a ticket closure. A practical offboarding sequence is usually:
  • Freeze the agent’s ability to obtain new credentials or tokens.
  • Revoke current secrets, certificates, and refresh tokens.
  • Disable all tool connectors, webhooks, and plugin grants.
  • Invalidate any standing sessions and rotate shared dependencies.
  • Confirm logs, queues, and schedulers no longer trigger execution.
The point is to remove the agent’s operational path, not just its named identity. These controls tend to break down in multi-team environments where the agent spans SaaS tools, shared vaults, and independently managed control planes because no single team has a complete inventory.

Common Variations and Edge Cases

Tighter offboarding often increases coordination overhead, requiring organisations to balance speed of retirement against the risk of leaving hidden access behind. That tradeoff is especially visible when the retired agent is being replaced by a newer version, because teams may want continuity while still needing a hard cutover. Best practice is evolving, but current guidance suggests treating replacement as a fresh trust boundary: create a new workload identity, reissue only the minimum required JIT secrets, and retire the old agent only after downstream dependencies have switched. This is where autonomous systems differ from human joiner-mover-leaver processes, because the old agent may still have implicit authority through cached context, scheduled jobs, or delegated tool chains. The hardest edge cases involve shared credentials, overused NHIs, and duplicated secrets. NHIMG’s Top 10 NHI Issues highlights how overuse and duplication create hidden dependencies that survive retirement. When one agent shares a token with another application, revocation can cause unintended outages, so teams need dependency mapping before shutdown. The SailPoint report AI Agents: The New Attack Surface found that 80% of organisations already saw agents act beyond intended scope, which is a strong signal that offboarding must include a review of all tool access, not just the “retired” agent record. The practical rule is simple: if the agent can still authenticate, it is not really retired.

Standards & Framework Alignment

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

OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10A1Agent lifecycle risk includes orphaned access after retirement.
CSA MAESTROGOV-1MAESTRO stresses governance and ownership for agentic systems.
NIST AI RMFAI RMF GOVERN supports accountability for autonomous system lifecycle decisions.

Treat agent decommissioning as a security event and revoke every tool path, token, and connector.

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