Your idle AI agents and old guests can now be switched off by Entra ID. Here's what to check
Entra ID has a built-in policy that, once it's on, warns owners about idle agent identities at 60 days and disables them at 90. Guest lifecycle policies can remove guests nobody vouches for. Here's what to check before either one acts.
part 67 of 67 · Platform releases, explained from scratchthe ideaNobody uses it for 60 days, you get a warning. At 90 it's off.
after reading, you can- Explain why a bot nobody touches for three months ends up switched off, and who can turn it back on
- Set up a guest lifecycle policy pilot with sponsors, grace periods and the right precedence
- Spot the bots and guests a policy would break before you turn it on
Microsoft is putting agent identities and guest accounts on a timer. Every tenant has a default policy that, once enabled, warns owners about agents nobody has used in 60 days and disables them at 90. Guest lifecycle policies can now disable or delete guests whose sponsordefinitionThe person who answers for an agent or a guest. They get the lifecycle emails and decide whether it still needs access, so pick someone who'll actually read them. stops vouching for them. Check what's switched on in your tenant before the first agent you still need goes quiet.
Entra ID can now clear out the AI bots and guest accounts nobody looks after
Companies give accounts to two kinds of outsiders that rarely get tidied up. One is the AI agent: a bot that reads mail, files tickets or calls an API with its own sign-in. The other is the guest, a partner or contractor invited into your Microsoft 365 tenant. Both tend to outlive the project they were made for. Microsoft Entra ID now has lifecycle policies for each. A policy checks whether someone still vouches for the account and whether it's been used lately. If the answer is no, it warns the responsible people and then disables or deletes the account on a schedule you set. For agents there's also a built-in policy with fixed timings that needs no extra licence.
Think of the visitor badges at a reception desk. Each one has a host who signed the visitor in. Now the front desk calls the host every few months to ask if the visitor still comes in, and switches off a badge nobody has swiped for a while. If the host has left the company, the badge goes too, unless somebody else takes it over.
- Tenants running Copilot Studio or Foundry agents
- Teams with many B2B guests
- Identity and governance admins
- Owners of business agents
Why nobody cleans up old bots and guests by hand
An agent identitydefinitionThe agent gets its own sign-in in your directory, apart from whoever built it. That's what lets you see what it does and switch it off on its own. holds tokens and permissions. When the pilot ends, the identity usually stays, still able to get a token for whatever it was granted. Microsoft's own documentation says forgotten identities become easy targets and that agents without clear accountability can keep access indefinitely. Guests are the older version of the same problem: invites accepted for a project years ago, still sitting in the directory.
Most teams clean these up by hand, if at all. Someone exports guests to a spreadsheet before an audit and emails the people who invited them. Agents are harder still, because there's often no list of who owns which one. The new policies turn that chase into something the tenant does on a schedule, and they leave a record of who confirmed what.
The risk runs the other way too. A policy that disables a quarterly reporting agent in week ten breaks a business process nobody connected to identity. The default agent policy can't have its timings changed, so the useful work is deciding scope and exclusions before it acts.
-
01 Agent stops getting tokens
Entra ID treats the agent as inactive once no tokens are being issued to it. Usually the pilot ended. Sometimes the job just runs once a quarter.
-
02 Day 60: sponsors and owners hear about it
Its sponsors and owners get an email. If it has neither, the email goes to the fallback recipients you set, so don't leave that list empty.
-
03 Day 90: the identity is disabled
The agent can't sign in. Anything that depends on it starts failing, usually with an authentication error in the calling system.
-
04 Only owners or admins can bring it back
The sponsor got the warning but can't undo the disable. Microsoft says only an owner or an administrator can bring the agent back.
-
05 Day 455: the identity is deleted
Once it's been idle for 455 days, the default policy deletes the identity. Sort out exclusions well before it gets that far.
For engineers: the custom agent policies count inactivity the same way, as no tokens issued for the identity in the configured period. Microsoft says a user interacting with the agent makes it active again, so the ones at risk are agents nobody touches for months, such as quarterly or year-end jobs. List those before the policy does it for you.
What Microsoft changed at Ignite
What's new from Ignite, and which bits you'll actually use
These are policies you write yourself. You can make a sponsor reconfirm the agent every so often, insist it keeps enough sponsors, and set your own idle limit. Microsoft's Ignite post says they're GA.
Every tenant gets this one, and you can't change its timings. It warns at 60 days, disables at 90 and deletes at 455. Microsoft says you don't need a licence for it.
These check whether a sponsor still vouches for the guest and whether they've been active. They can also look at access packages, sponsor count and invites nobody accepted. Guests that fail get disabled or deleted. This part is GA.
Sponsors open My Account to see their guests and extend or end each sponsorship. Microsoft took the preview label off this page on 21 November, so you can point sponsors at it.
Your admins can ask an AI assistant to look things up in Entra or Intune, or to change Entra settings. It goes through Microsoft Graph, and it won't write anything until the person confirms. It's GA now and takes over from MCP Server for Enterprise.
Agents that work from Windows 365 Cloud PCs can now sit under Conditional Access too. The Ignite post lists it as GA, though the condition you use to target those Cloud PCs is still marked preview.
The GA label is ahead of the docs. Microsoft's Ignite post lists automated lifecycle management of agent identities as generally available. When we checked on 30 November, the Learn pages for both the custom agent policies and the default inactivity policy still carried a preview banner, and the admin center path still reads Agent ID (Preview). Guest lifecycle policies have no such gap. Treat the agent side as production-ready only once your own tenant shows it without the preview tag, and keep checking those pages for changes.
The licences don't line up. You don't need one for the default agent policy. Custom agent policies need Microsoft 365 E7, or an Agent 365 licence on top of at least Entra ID P1 or Microsoft 365 E3. Guest policies need Entra ID Governance and a linked Azure subscription for the guest add-on meter, since guests are billed on monthly active use. Check which one you actually have before you plan around a feature.
Guest billing follows the policy's actions. Microsoft's guest licensing page lists a guest disabled or deleted by a lifecycle policy, a sponsor attesting to a guest, and a user sponsoring a new guest as billable governance actions. Each guest is billed at most once a month, however many actions touch it. A first policy over every guest in a large tenant can produce a visible bill, so price it on your guest count before you scope it to all guests.
| Rule | Default | Range | What it checks |
|---|---|---|---|
| Sponsor attestation | 90 days | 30 to 365 days | A sponsor confirms in My Access that the guest still needs access |
| Activity requirement | 90 days | 30 to 730 days | The guest has been active, for example signed in to the tenant |
| Access package expiration | None | On or off | Starts disable or delete once the guest's last access package assignment ends |
| Minimum sponsor count | 1 | 1 to 5 | Enough sponsors are named. A group sponsor counts as one |
| Guest redemption | 30 days | 1 to 30 days | Deletes invited guests who never accepted (PendingAcceptance) |
Then you pick what happens: delete, disable, or disable now and delete after a grace period of 7 to 90 days (30 if you don't change it). Each rule gets its own grace period, so a long one on attestationdefinitionA sponsor confirming that a guest still needs access. In Entra ID it's done in My Access or My Account and resets the guest's clock. won't hold back a rule whose grace has run out. Policies run once a day and send up to three notices. Don't expect same-day results while you test.
| Setting | Default inactivity policy | Custom agent lifecycle policy |
|---|---|---|
| Licence | None needed | Microsoft 365 E7, or Agent 365 with Entra ID P1 or Microsoft 365 E3 |
| Rules | Inactivity only | Reconfirmation (30 to 730 days), minimum sponsors, inactivity |
| Timings | Fixed: notify 60, disable 90, delete 455 days | You set them, plus an optional grace period |
| Scope | All agent IDs, or all except ones you pick | The agent identities you select |
| Actions | Notify, disable, delete | Disable, soft delete, or disable then delete |
| Priority | Always applied last | Ordered. The highest matching policy wins |
| Admin roles | Lifecycle Workflows, AI or Agent ID Administrator | Lifecycle Workflows or AI Administrator |
How the pieces arrived
- 9 Oct 2026Agent lifecycle policies documented
Microsoft documents custom agent policies, still marked preview. Don't build production processes on them yet.
- 28 Oct 2026Default inactivity policy documented
Microsoft writes up the built-in policy and its fixed schedule. It needs no licence, so every tenant has it, and its page doesn't say whether it starts on.
- 17 Nov 2026Ignite: lifecycle features announced as GA
Microsoft's Entra post says the agent and guest policies are GA, and MCP Server for IT Admins too. That's the date you'll see quoted, even though the agent docs disagree.
- 21 Nov 2026Sponsored guests leaves preview
Microsoft drops the preview label from the sponsor page in My Account. Sponsors can now use it for real.
- 30 Nov 2026Agent pages still say preview
Both agent lifecycle pages on Learn still show the preview banner on the day we checked.
Where these policies catch people out
The documentation is clear about the rules. What it leaves you to work out is how those rules meet a real tenant. These are the places we'd check first.
| Behaviour | Why it bites | What to do |
|---|---|---|
| Seasonal agents count as inactive | A year-end or quarterly agent goes quiet for months and gets disabled before its next run | Exclude it from the default policy, or cover it with a custom policy that uses reconfirmation |
| Sponsors can't re-enable agents | The person who gets the warning can't undo the disable | Make sure each business agent has an owner or an admin path back |
| Agents with no sponsor or owner | Warnings go nowhere unless fallback recipients are set | Add a monitored group mailbox as a fallback recipient |
| Guests with any Entra role | The policy can't disable or delete them, so they stay | Read the privileged guest report and remove roles guests shouldn't hold |
| Nested groups in guest scope | Only direct members are evaluated | Use flat groups for guest inclusion and exclusion |
| Overlapping guest policies | A guest gets one policy only. Lower ones aren't evaluated | Put narrow policies above broad ones and recheck scopes |
| A restored policy | It comes back disabled at the lowest priority | Review it and enable it on purpose |
Rare doesn't mean unused. An agent that runs a few weeks a year looks idle for the rest of it, while a dead agent with a scheduled heartbeat looks busy. Before you trust the policy's list, compare it with what the agent's owner thinks it does.
Ending sponsorship isn't removing the guest. In My Account, a sponsor who ends sponsorship only removes themselves. The guest stays until the minimum sponsor rule or another rule catches it. Sponsors who think they've cleaned up often haven't, and that's worth putting in the email you send them.
Turn it on without breaking the bots people still use
Before: nobody owns the cleanup
Agents and guests are created by many teams. Cleanup depends on someone exporting a list and chasing people by email before an audit.
After: policies ask the sponsors, then act
Each agent and guest has a sponsor. Lifecycle Workflows runs the checks, sponsors answer in My Account, and whatever nobody claims gets disabled. Nobody has to chase a spreadsheet.
From inventory to enforcement
- 01List what you have
Pull every agent identity and every guest. For each agent, write down which platform made it and whether anyone sponsors or owns it. For guests, the Lifecycle Workflows overview already counts the ones with no sponsor and the invites nobody accepted, so start there.
- 02Name sponsors before any policy runs
A policy that can't find a sponsor either notifies nobody or acts with nobody warned. Assign sponsors to the agents and guests that matter, and add a group mailbox as the fallback recipient.
- 03Check the default agent policy
Open the default inactivity policy and see whether it's on and what it covers. Switch the scope to All Agent IDs except selected and pick out the seasonal agents you found. If the policy is on, they'll otherwise be disabled on schedule.
- 04Test a custom agent policy on a few agents
If you have the licence, scope a policy to specific test agents with a 30-day reconfirmation, as Microsoft suggests. Confirm the sponsor gets the notice and can extend or disable in My Account.
- 05Pilot guests on one group
Scope a guest policy to the direct members of one group, use disable then delete, and give each rule a grace period. Watch the in-scope list and compliance states for a few daily runs.
- 06Clear the guests the policy can't touch
Read the privileged guest report. The policy skips any guest with an Entra role assignment, so those accounts stay put. Ask whether each of those roles should exist at all.
- 07Widen scope in order
Add narrow policies first and keep them above the broad ones. Each guest gets one policy, so a broad all-guests policy placed on top would hide the rest.
- 08Write the way back down
Record who can re-enable a disabled agent and how a deleted guest gets restored. Sponsors can't do the agent part, so the help desk needs a route to an owner or admin.
- Nobody has opened the default agent policy
- Half the bots have no sponsor. Nobody set a fallback mailbox, so their warnings go nowhere
- The quarter-end finance bot gets disabled two weeks before close, and nobody knows why
- Guest cleanup is still a spreadsheet before each audit
- Guests who picked up directory roles years ago still have them. Nobody's looked
- Someone read the default policy's scope and left out the bots that only run at year end
- Business bots have sponsors. When one doesn't, the warning still lands in a shared mailbox someone reads
- Sponsors know a notice is coming and what to click to extend. Nobody's surprised
- Someone tried the guest policy on one group first, then widened it a step at a time
- Guests with directory roles got reviewed. Most don't have them anymore, and someone wrote down why the others do
MCP Server for IT Admins needs the same governance
The other GA item that touches identity work is Microsoft MCP Server for IT Admins. It lets an AI assistant read and manage Entra data, and read Intune data, by turning requests into Microsoft Graph calls. That makes it another route into your directory, and it deserves the same scrutiny as any admin tool.
Its documentation has a few details you'll need when you govern it. You register an app for each client in your tenant and give it only the Graph delegated permissions your scenarios need. Writes don't happen until the user confirms through MCP elicitation. There's also a request_access tool that asks for an access package, a PIM role activation or a new permission grant when the user lacks access. Set Assignment required to Yes on the enterprise app if you want only named people using it.
If you tried the older Microsoft MCP Server for Enterprise, its /enterprise endpoint is deprecated. Microsoft says it keeps working for a few months and you must move to the new /admin endpoint, which uses ordinary Graph permissions in place of the old MCP scopes. Plan that move with the client owners, and revoke the old grants once the last client has switched.
Who does what
- Decide who sponsors business agents and guests, and make it part of approving a new agent or invite
- Look at the guest billing estimate before anyone scopes a policy to all guests. It's billed per guest
- Agree how long a bot can be off before somebody in the business notices and complains
- Open the built-in inactivity policy and write down how it's set today. You'll want that if something breaks
- Leave out the bots that only run now and then, or put them on a custom policy. Otherwise they'll get switched off
- Try one guest policy on a single group first, using disable then delete, so you can undo mistakes
- Review privileged guests the policy can't act on
- Check that every bot you own has a sponsor and an owner. The owner matters more, because sponsors can't switch it back on
- Tell the identity team which bots only run once a month, a quarter or a year. They're the ones that get caught
- Don't ignore the 60-day notice. Either use the bot again or let it go
- Inventory MCP clients and move any still on the /enterprise endpoint
- Only let named people use MCP Server for IT Admins, and check which Graph permissions it actually got
- Set an alert for agents or guests that get re-enabled outside the normal process. Someone may be working around the policy
If a policy switches off something you still need
Most problems here are a needed agent switched off or a live guest removed. The fixes are simple if you know who can do them.
- 01Confirmfirst hour
- Check the audit log for the lifecycle policy action and which policy took it
- Check whether it was disabled or deleted, and write down when. That tells you which fix you need
- Let the business owner know what stopped working and roughly when it'll be back
- 02Restoresame day
- Get an owner or admin to re-enable the agent identity. The sponsor can't, however much they want to
- Restore a deleted guest from Deleted users. You've got 30 days, then Entra ID deletes it for good
- Make the agent active again, or exclude it, so the next run doesn't disable it again
- 03Fix the causethis week
- Add whoever was missing: a sponsor, an owner or a fallback recipient. Then it won't happen again
- If the agent only runs now and then, put it on a custom policy with reconfirmation instead
- If a guest got the wrong policy, look at precedence. A higher policy may have caught them first
- 04Learnnext review
- Keep a list of the bots that rarely run. The identity team checks it before each policy change
- Put the re-enable steps in the help desk runbook, with the names of who can do it
Situations you might recognise. They're made-up illustrations, not our clients
- the setup
- A finance team built a Copilot Studio agent for year-end reconciliations. It has its own agent identity and only works a few weeks each January, then sits untouched.
- what happens
- The default policy emails its owner in spring and disables it 90 days after its last token. By then the owner has moved teams and missed the email, so the January run fails.
- what to do
- Leave it out of the default policy, or give it a custom policy with a yearly reconfirmation. Make sure someone who still works there is its sponsor and owner.
- the setup
- A manufacturer has thousands of supplier guests, many invited years ago. Some never accepted. Sponsors were never recorded for most of them.
- what happens
- An all-guests policy with a minimum sponsor rule would mark most of them noncompliant at once, notify nobody useful and add billed actions.
- what to do
- Start with the rule that deletes invites nobody accepted. Then name sponsors supplier by supplier, and only then try attestation on one group.
- the setup
- An outside consultant was given an Entra directory role during a migration three years ago and still has it.
- what happens
- The guest policy marks the account noncompliant, but the role assignment blocks the action. It shows up in the privileged guest report and nowhere else.
- what to do
- Read the privileged guest report after the first run. Remove the role, or move it to PIM with an end date if the work continues.
How Cohash helps
Most of this is people work. Someone has to track down who's responsible for each bot and get sponsors named before a policy starts switching things off, and we do that alongside the Entra setup. See our Microsoft Entra ID consulting, or start with the assessment if you're not sure where you stand.
For a wider view, read our comparison of Entra with Okta and SailPoint for agent identity, or see what our identity and access management practice covers.
What to take from this
- 01
Once it's on, the default agent policy warns at 60 days idle, disables at 90 and deletes at 455. You can't change the timings.
- 02
Exclude rarely used agents, or give them a custom policy, before the first notice goes out.
- 03
Sponsors can't switch a disabled bot back on. Make sure an owner or admin can, and that the help desk knows who.
- 04
You pay for guest policies per guest, per month. And they won't touch a guest who still holds an Entra role.
- 05
Try a guest policy on one group first. Keep the narrow policies above the broad ones.
01Will Entra ID disable my AI agents automatically?
It can. Every tenant has a built-in inactivity policy, and once it's enabled, a bot nobody uses for 60 days gets its sponsors and owners an email. At 90 days the bot is disabled, and at 455 it's deleted. Microsoft's page doesn't say whether the policy starts on, so go to Lifecycle Policies > Agent ID and check it, along with which bots it covers.
02What counts as inactive for an agent identity?
Microsoft's lifecycle page defines it as no tokens issued for the identity during the period. An agent that only runs once a quarter or once a year can look idle for months even though people rely on it. Microsoft says interacting with the agent makes it active again.
03Can I change the 60 and 90 day timings?
Not on the default policy. Its timings are fixed. You can only switch it on or off, change which agents it covers and set fallback recipients. If you need different timings, build a custom lifecycle policy. That needs Microsoft 365 E7, or Agent 365 on top of Entra ID P1 or Microsoft 365 E3.
04Who can turn a disabled agent back on?
An owner or an administrator. Microsoft says sponsors can't re-enable or restore agent identities, so give every business bot an owner and tell the help desk who that is.
05Are agent lifecycle policies generally available?
Microsoft's Ignite post says they are. When we checked on 30 November, though, both Learn pages for the agent policies still had a preview banner on them. The guest policies don't have that problem. Look at what your own admin center says before you rely on it.
06What licence do guest lifecycle policies need?
You'll need Microsoft Entra ID Governance and an Azure subscription linked for the guest add-on meter. Guests are billed on monthly active use. A guest that a policy disables or deletes, or that a sponsor attests, counts as billable that month, so a big first run shows up on the bill.
07My guest failed every rule. Why is the account still there?
Check the grace periods first: each rule can have one, and the policy only acts once it ends. If it has ended, look for an Entra role assignment or membership of a restricted administrative unit, which blocks the action. Then check precedence, because a guest gets only one policy and nested groups aren't evaluated for scope.
08Does ending my sponsorship remove the guest?
No. You've only taken yourself off as sponsor. The guest stays until the minimum sponsor rule, or some other rule in the policy, catches them. If you meant the guest to go, tell your admins as well.
Three questions, about a minute
Pick an answer and we'll tell you if it's right, and why it is or isn't. The score stays in this browser.
-
Q1Nobody has touched the year-end reporting bot for three months, and it hasn't had a token since. What has the default policy done by now?
show the answer
B. The agent identity is disabled The default policy warns at 60 days and disables at 90. It doesn't delete anything until 455 days.
-
Q2A sponsor gets the notice too late and the agent is already disabled. Who can turn it back on?
show the answer
D. An owner or an administrator Sponsors can't do it. Microsoft says they aren't allowed to re-enable or restore agent identities, so it has to be an owner or an admin.
-
Q3Your guest policy has no grace periods and has run all week. One guest fails every rule, yet the account's still enabled. What would you check first?
show the answer
A. The guest holds an Entra role assignment Any Entra role assignment stops Lifecycle Workflows from disabling or deleting a guest. The privileged guest report lists them.