AI Agent Offboarding: Entra Disables Idle Agents After 90 Days. The Orphan That Matters Is Still Busy.
Inactivity timers clean up abandoned pilots. The agent whose sponsor left keeps running, keeps resetting its clock, and never trips the policy.
Take the leaver ticket for an analyst who built three AI agents last spring. HR closes the record on Friday. IT disables the account, revokes the laptop's tokens and removes the person from every group. On Monday, two of those agents run their morning jobs exactly as before. One summarises a shared inbox. The other reconciles invoices against an ERP export and posts exceptions to a channel.
Nothing in that leaver process was wrong for a human. It was simply aimed at the wrong object. As agents get their own identities, AI agent offboarding stops being a side effect of disabling a person and becomes a separate job, with its own trigger. The cleanup tooling now shipping mostly keys off a different signal: whether the agent has gone quiet.
AI agent offboarding now has three timers. None of them is the leaver date
Microsoft Entra Agent ID gives each agent its own directory object: an agent identity, optionally paired with an agent user, created from an agent identity blueprint. Each agent identity is meant to have a human sponsor, who is accountable for its lifecycle and access. Entra also ships a default inactivity policy that needs no licence. Once an admin switches it on, the schedule is fixed:
- 60 days inactive: sponsors and owners are notified (or fallback recipients, if the agent has neither).
- 90 days inactive: the agent identity is disabled.
- 455 days inactive: the agent identity is deleted.
Separately, access packages assigned to an agent can carry an expiry date, and the sponsor is warned before it lapses. At Ignite on 17 November, Microsoft added an Agent 365 action centre, in preview from December, whose first job is to surface inactive and ownerless agents. Its blog post puts the principle plainly: an agent without an owner has no one accountable for it.
All of this is useful. Look at what each mechanism listens for, though. Idle time. Access expiry. A missing owner field. None of them fires on the event that most often produces an orphan, which is the person behind the agent leaving.
Separate identities break the old leaver checklist
Before agent identities, most agents borrowed something. They ran on a user's delegated token, a personal access token, or a service principal that one engineer created and nobody else understood. Offboarding was messy, but it had an accidental upside: disabling the person often broke the agent too, because the agent was the person as far as the target system could tell.
Giving the agent its own identity is the right design. It means you can see what the agent did, scope it separately from its creator, and apply Conditional Access to it. It also means disabling the creator does nothing to the agent. The two objects are linked by a sponsor attribute, not by shared credentials. Your leaver workflow disables a user. The agent identity is not a user, so it carries on.
This is not a Microsoft-specific problem. The OWASP Non-Human Identities Top 10 ranks improper offboarding as its first risk. Microsoft's Ignite announcement extends Entra Agent ID to connected agents from Salesforce Agentforce, Amazon AgentCore, Google Vertex AI, ServiceNow, UiPath and others, and to local agents such as GitHub Copilot CLI and Claude Code. As that rollout lands, more of your agents will have identities that outlive the people who set them up.
The orphan that matters is the busy one
Inactivity timers clean up agents that stopped being used. That is housekeeping, and it is worth doing. An abandoned proof-of-concept that has not run since July holds permissions nobody needs. Disabling it at day 90 removes a dormant risk.
The leaver orphan is the opposite case. It was built to run on a schedule or react to events, so it stays active. It reads the inbox every morning, touches the ERP export every evening, and resets its own inactivity clock each time. Under the default policy it will never reach day 60. It is also the agent most likely to matter: it was useful enough that someone automated real work with it, and it holds whatever access that work needed.
“An inactivity timer resets every time the agent runs. The agent you most need to review is the one that never stops running.”
Ownerless detection has a related blind spot. An agent whose sponsor field still points at a disabled account is not ownerless in the data model. It has a sponsor, and that sponsor will never answer an expiry email. Unless your tooling treats a disabled or deleted sponsor as no sponsor, the agent passes the check.
| Mechanism | Triggered by | Catches | Misses |
|---|---|---|---|
| Default inactivity policy | 60 / 90 / 455 days without activity | Abandoned pilots, one-off experiments | Scheduled or event-driven agents whose sponsor left |
| Access package expiry | End date on an assignment | Access granted for a fixed project | Assignments with no end date; renewals approved by a sponsor who no longer reviews |
| Ownerless agent views | Empty owner or sponsor field | Agents created without an accountable person | Agents whose sponsor account is disabled but still listed |
| Leaver workflow with sponsor tasks | Sponsor's leaver or mover event | The busy orphan, on the day it is created | Agents with no sponsor recorded; tenants without the licence |
Sponsorship transfer moves the alerts, not the judgement
Entra does have a mechanism tied to the right event. Lifecycle Workflows include three sponsor tasks for mover and leaver templates: email the manager about sponsorship changes, email cosponsors, and transfer the agent's sponsorships to the leaver's manager. Two caveats come with it.
First, it is not automatic. Someone has to add those tasks to a leaver workflow, and the governance features require Microsoft 365 E7, or an Agent 365 licence alongside at least Entra ID P1 or Microsoft 365 E3. A tenant relying on the free inactivity policy alone has no leaver trigger for agents.
Second, transfer is not review. The manager inherits accountability for agents they may never have seen, configured by someone who is no longer there to explain them. The task guarantees that a human is named. It does not guarantee that the human understands what the agent reads, writes or sends. In practice the manager approves the next access-package renewal because the agent is still running and nobody has complained, which is how the old service-principal sprawl happened.
The survey data, mostly vendor-commissioned, points the same way. Delinea's 2026 Identity Security Report found that 42% of IT and security leaders had no automatic way to remove AI access when a session ended, and only 36% said they could always trace an AI access event involving sensitive data back to the person who authorised it.
What to wire before your next leaver
None of this needs a new product. It needs the leaver event to reach agents as well as people, and a short review step that a successor can complete.
- Inventory agents by sponsor. Export every agent identity with its sponsor, owner, blueprint and last activity. Flag any whose sponsor is disabled, deleted or outside the company. That list is your existing orphan backlog.
- Add agents to the leaver workflow. If you have the licence, add the transfer and notification tasks to every leaver and mover template. If you do not, add a manual step: before the account is disabled, the leaver's manager receives a list of agents the leaver sponsors.
- Make transfer start a clock. A transferred agent gets a 14-day review window. The new sponsor confirms what it accesses and either keeps it, narrows it, or disables it. No confirmation means the agent is disabled, not renewed.
- Put end dates on every access package. Expiry turns renewal into a decision. Without an end date, the only way access ends is someone remembering to remove it.
- Keep the inactivity policy on, but scope exclusions narrowly. Exclude seasonal agents by name, such as a year-end close agent, rather than excluding whole blueprints.
A query along these lines, run weekly, finds the busy orphans. The field names will differ by platform; the logic is the point.
-- Agents still running whose accountable human has gone
SELECT a.agent_id,
a.display_name,
a.last_activity_at,
s.user_principal_name AS sponsor,
s.account_enabled AS sponsor_enabled
FROM agent_identities a
LEFT JOIN users s ON s.id = a.sponsor_id
WHERE a.enabled = true
AND a.last_activity_at > now() - interval '7 days'
AND (s.id IS NULL OR s.account_enabled = false)
ORDER BY a.last_activity_at DESC;What to measure
Three numbers tell you whether agent offboarding works: the count of enabled agents with a disabled or missing sponsor (target: zero, checked weekly); the median days between a sponsor's leaver date and the agent being reviewed or disabled; and the share of agent access packages with an end date. The first number tends to be uncomfortable the first time you run it. Most of the agents it surfaces will be doing something useful, which is exactly why nobody noticed them.
The rollout of identities to third-party and local agents finishes over the next few weeks, so the inventory you build now is the smallest it will ever be. Agents are going to be on the org chart in all but name. Their leaving process should start on the day their sponsor's does.
Frequently asked questions
Related reading
Salesforce's Agent API Metering Has a Unit but No Price. Microsoft's Has a Price and a Default $40 Cap.
Salesforce will bill each successful agent call at a multiplier still marked TBA. Microsoft switches on 4,000 Copilot Credits per user by default. What each meter counts, and what to do before it starts.
Agent Distraction: Coding Agents Chase 6% of the TODO Comments They Read. Over Half Those Bugs Are Still Open.
Google found coding agents wander off after TODO comments nobody asked about, at 77% more tokens per session. Multiply the funnel and the rate is about 1 session in 150, with two causes that need two fixes.
Zero Data Retention Covers a Request Path, Not a Vendor. The Fireworks Breach Reached the Paths Outside It.
The Fireworks AI breach exposed Notion AI transcripts despite a zero data retention commitment. The promise applied to inference requests. The transcripts sat in a feature that stores by design.