Agent Identity for Internal AI Workflows: Who Sponsors Each Agent, and What Happens When They Leave
Most companies with a few internal AI agents in production did not decide how those agents would log in. The person who built each one picked whatever worked that afternoon: their own Google or Microsoft sign-in, an API key from their account, or a service account they created for the job. Months later, nobody can say with confidence which agents exist, what each one can reach, or who should approve its access.
Agent identity is the practice of giving each AI agent its own account in your identity system, with a named person accountable for it and a lifecycle that matches how you treat people and other software. Microsoft, Okta, NIST, and OWASP have all published on it. This guide is for the operations or AI program owner who has to make that work for a real set of internal agents, including on the day the person who built one of them leaves.
If you are still deciding whether a workflow should act with its own authority or on behalf of the user, start with our guide on AI workflow service account permissions, which covers that choice and least-privilege scope in detail. This article picks up after that decision and deals with ownership, registration, review, and retirement.
The short answer
- Give every production agent its own identity, unless it only ever acts inside one user's live session with that user's permissions.
- Record two people for each agent: a business sponsor who decides whether it should exist and what it may access, and a technical owner who manages its configuration and credentials.
- Keep a register of agents with purpose, systems touched, identity type, credentials, triggers, sponsor, and owner.
- Add agents to the leaver and mover checklist, and ask two separate questions there, because agents on a person's token and agents on a person's service account fail in opposite ways.
- Recertify each agent on a fixed cadence and when it goes quiet.
- Retire agents in a fixed order and keep the evidence before you delete anything.
Why "the agent uses Sam's login" stops working
When an agent authenticates with a person's credentials, the audit log records that person as the actor for everything the agent does. You can no longer separate what Sam did from what the agent did on Sam's account. That matters the first time something changes that nobody expected, and it matters again when an auditor asks who approved a given action.
Microsoft's description of why agent identities exist lists the same problems from the vendor side: you need to tell agent activity apart from people and ordinary workloads, give agents right-sized access, keep them away from the most sensitive roles, and manage large numbers of agents that may be created and removed quickly. Palo Alto Networks' overview of agent identity frames it as a lifecycle rather than a single login: registration, scoped credentials, tracking who delegated what, and revocation.
Practitioners put it more briefly. One post on X lists five checks before an agent touches production: its own identity rather than a shared service account, a named human owner, least-privilege access, a log of every action, and a kill switch. The Cloud Security Alliance notes on X that if you ask three teams what agent identity means, you get three answers (a service account, a shared API key, a user's impersonation token), and treats that as a sign there is no lifecycle at all.
The point of this article is the lifecycle. A separate identity per agent is the precondition, but the part that goes wrong in mid-size companies is accountability over time.
Decide what counts as an agent identity in your company
You do not need a dedicated agent identity product to start. You need a consistent rule for what each agent authenticates as. There are three common cases:
- The agent acts only inside a user's live session. An assistant in a chat window that reads what the user can read and acts only while the user is there. It can use delegated access from that user. It still belongs in the register, but it does not need a standing identity of its own.
- The agent runs on its own schedule or trigger. A triage agent that wakes on every new ticket, or a reconciliation agent that runs nightly. It needs its own identity with its own permissions, because there is no live user whose session it can borrow.
- The agent acts for many users. A shared agent that drafts replies for a whole team. It needs its own identity, plus a way to carry which user asked, so each action is attributable to both.
If you run Microsoft Entra, Entra Agent ID is now generally available and provides a purpose-built identity type with lifecycle tooling. If you run Okta, Okta for AI Agents registers AI agents in Okta, and agents can be added manually with up to five individual owners or a group. If you have neither licensed for every agent, a dedicated service account per agent with no interactive login, recorded in a register, gets you most of the way and maps onto either product later.
The rule that matters is one identity per agent. Shared identities make every later step harder, as the retirement section shows.
Separate the sponsor from the owner
The most useful idea in Microsoft's model is not technical. Entra Agent ID separates business accountability from technical administration. Owners manage setup, configuration, and credentials. Sponsors are business representatives accountable for the agent's purpose and lifecycle decisions, including access reviews and whether the agent should be kept, without technical administrative access. At least one sponsor is required for every agent identity.
This split fits internal operations well, even if you never use Entra:
- The sponsor is the person whose team relies on the agent: the head of support for a triage agent, the finance controller for an invoice exceptions agent. They answer "should this agent still exist?" and "is this access still justified?". They are the person you call when the agent does something unexpected and someone has to decide whether that was intended.
- The owner is the engineer, consultant, or IT administrator who can change the agent's configuration and rotate its credentials. They answer "how does it work?" and "can we fix it?".
Microsoft's Zero Trust workshop guidance on assigning sponsors and owners explains why both are needed. Without them, no human is accountable when an agent accumulates permissions, behaves strangely during an incident, or needs to be suspended.
Merging the roles causes two common mistakes. If the builder is the only named person, the agent's justification leaves with them. If an IT administrator sponsors every agent, they approve access they cannot judge; Microsoft does not make Agent ID administrators sponsors by default, so administrators are not overburdened with direct responsibility for individual agents.
Make sponsor succession explicit
People move teams and leave. The agent's sponsor has to move with that.
Entra handles the simple case: when a sponsor leaves, sponsorship transfers to their manager. But Microsoft's own guidance on sponsor mover and leaver workflows points out the gap. Without lifecycle workflows configured, the transfer happens silently. Nobody is told. The agent keeps running with whatever access it had, and the new sponsor does not know they are responsible for it. Microsoft calls this orphaned accountability.
The fix is procedural, and it works with or without Entra:
- When a sponsor moves or leaves, the new sponsor receives a list of the agents they now sponsor, with each agent's purpose and access.
- The new sponsor confirms each agent within a set window (two weeks is a reasonable default), or marks it for suspension.
- An agent whose sponsorship is not confirmed is suspended, not left running.
In short: record a business sponsor and a technical owner for every agent, and make sponsor succession an explicit handover the new sponsor acknowledges, because automatic transfer to a manager leaves an agent with a nominal sponsor who does not know it exists. The change is small, but it is the difference between a register with a name in every row and a register where the names mean something.
The agent register
Everything above depends on a list. Palo Alto Networks describes registration as the first stage of agent identity: each agent recorded with a declared purpose, owner, risk tier, and authorised tools, so you can tell approved agents from shadow AI. If you already run a shadow AI intake process, our guide on turning shadow AI into a sanctioned backlog covers how unapproved agents get into the register in the first place.
A register for a mid-size company can be a spreadsheet at first. Each row should hold:
- agent name and a one-line purpose;
- sponsor and technical owner;
- identity type (own identity, delegated from a user, or shared, with shared flagged for remediation);
- every system it reads from and writes to;
- every credential it holds: API keys, OAuth grants, client secrets, certificates, and where each is stored;
- what wakes it: schedules, webhooks, inbound email, chat events;
- the person who created each credential, if different from the owner;
- last confirmed date and last activity date.
The "person who created each credential" column looks redundant. It is the column that matters most on the day that person leaves.
Two ways an agent fails when its builder leaves
Here is the point most offboarding guidance misses. An agent running on a person's own token and an agent running on a service account that person created fail offboarding in opposite ways: the first breaks the day they leave, the second keeps working with nobody accountable, so the leaver checklist needs a separate question for each.
Lutril's post on AI agent offboarding sets out both scenarios clearly:
- The agent runs on the leaver's own account. A developer built an agent on their personal Google OAuth token. Their account is disabled on their last day, the token stops working, and every process that depended on the agent starts failing. Nobody knows what it did or how it was set up. Lutril calls this the better outcome, because at least the access is gone, but it is still an outage.
- The agent runs on a service account the leaver created. The account is not tied to the leaver's sign-in, so disabling them does nothing to it. The agent keeps running. The leaver may still know the credential. Nobody owns it, and it was never in scope for the offboarding ticket.
OWASP lists improper offboarding as the top risk in its Non-Human Identities Top 10, and its description covers the second case directly: identities whose owner left without a new owner being assigned, and a "partially offboarded employee" who was exposed to credentials they did not own and left without those credentials being revoked.
So the leaver checklist needs two separate questions, not one:
- Which agents run as this person? Check OAuth grants and API keys issued to their account. Each of these agents will break when the account is disabled. Move each one to its own identity before the last day, or accept the outage knowingly.
- Which agent credentials did this person create, hold, or see? Check the register's credential creator column and your secret store's access history. Each of these agents will keep working after they leave. Transfer ownership, rotate the credential, and confirm the sponsor.
A practitioner on X makes the same suggestion: tie agent ownership transfers to the same workflow as access reviews, so unattended automation does not become an orphaned service account. Run the same two questions when someone changes team, not only when they leave: the agents they built may still run on access they no longer need.
Recertify on a cadence and on silence
A register goes stale unless someone revisits it. Entra's agent lifecycle policies, currently in preview, offer three rules worth copying regardless of tooling: periodic reconfirmation by the sponsor or owner, a minimum number of sponsors, and inactivity monitoring, with an action such as disabling after a grace period.
For a mid-size company, a practical version is:
- the sponsor confirms each agent and its access every quarter, as part of the access reviews you already run for people;
- an agent with no activity for 30 days is flagged to its sponsor, and suspended if not confirmed;
- any agent with fewer than one confirmed sponsor is suspended.
An agent that has not run for a month either is not needed or has a trigger nobody remembers. Both are worth knowing.
Retire an agent in order
When an agent is no longer needed, retirement should follow a fixed sequence. Avatier's guide to deprovisioning AI agents sets out an order that is worth adopting:
- Inventory what the agent touches: systems, tools, credentials, triggers, groups, and roles.
- Confirm the accountable person, who approves retirement and knows about any second copy of a key.
- Revoke tokens and credentials, including refresh tokens, so the agent can no longer authenticate.
- Remove tool access, group memberships, and roles, so a newly issued credential would not work either.
- Disable the identity.
- Keep the evidence: what the agent did, who approved retirement, what was revoked, and when.
- Confirm each path is actually closed, then delete.
Two details from that guide change how you set agents up, not only how you retire them. Deleting an identity before the evidence is secured breaks attribution for everything the agent did, and a service account shared by several agents cannot be disabled without breaking the others. So: retire an agent in a fixed order (revoke credentials, remove reach, disable the identity, keep the evidence, then delete), and give each agent its own identity at creation, because an identity shared by several agents cannot be disabled without breaking the others.
For the evidence step, our guide on AI agent audit logs covers what to record so that the question "what did this agent do, and on whose behalf?" has an answer after the agent is gone.
What standards bodies are still working out
This area is moving. NIST's National Cybersecurity Center of Excellence published a concept paper on software and AI agent identity and authorization in February 2026 and received more than 600 responses; it intends to publish a draft project description and, eventually, a practice guide. The Cloud Security Alliance's agent identity governance framework covers agents that spawn short-lived sub-agents, and the Coalition for Secure AI proposes short-lived identities bound to claims about the agent's current code and model.
You do not need to wait for any of this. The register, the sponsor and owner split, the two-question leaver check, recertification, and the retirement order all work with today's tools, and they are what any later standard will assume you already have.
A worked example
The following is an illustrative example, not a client case. A 250-person logistics company has six internal agents. An audit of the register turns up:
- a support triage agent on its own service account, sponsored by the head of support, owned by an internal engineer;
- a carrier invoice agent running on a finance analyst's Microsoft 365 token, because that was quickest during the pilot;
- a CRM clean-up agent on a service account created by a contractor whose engagement ended in the summer, with no sponsor recorded;
- three assistants that act only inside users' own sessions.
The invoice agent is moved to its own identity before the analyst's planned parental leave, so the agent does not stop when their account is suspended. The CRM agent is the urgent one: the contractor knew its credential, nobody owned it, and it still had write access to every account record. The sales operations lead agrees to sponsor it, an internal engineer takes ownership, and the credential is rotated the same day. The three session assistants stay in the register with a note that they need no standing identity.
The leaver checklist gains two lines, one for each question above. The quarterly access review gains six rows.
Where this fits with the rest of your controls
Agent identity answers who the agent is and who is accountable for it. Other controls answer narrower questions. Scope and delegated versus workload identity are covered in AI workflow service account permissions. Keeping keys out of the model's context is covered in AI agent credential security. Attribution after the fact is covered in AI agent audit logs.
If you want a second opinion on the agents you already run, our AI audit builds the register with you and flags agents on borrowed tokens or unowned accounts. When we build a workflow through AI workflow automation, each agent ships with its own identity, a named sponsor and owner, and a retirement procedure in the handover.