Protect Conditional Access policies in Entra External ID
Applies to Microsoft Entra External ID, Revert
On this page
A deleted Conditional Access policy can be restored from Microsoft's recycle bin for 30 days. That covers deletion only: a policy that is changed or turned off keeps no previous version, and nothing is recoverable after 30 days. This article explains what Microsoft provides, where the gaps are, and how to detect and reverse changes with Revert.
What Microsoft provides
According to Microsoft's Recover from deletions in Microsoft Entra ID, deleted Conditional Access policies and named locations are kept for 30 days and can be restored from the Microsoft Entra admin center:
- Policies are restored from Conditional Access > Deleted policies. You can restore a policy in report-only mode or in the state it had when it was deleted, which can be On. Microsoft recommends restoring in report-only mode first and enabling the policy after review.
- Named locations are restored from Conditional Access > Named locations > Deleted named locations. A named location cannot be deleted while it is marked as trusted, and a recovered named location is not marked as trusted. Review it before you mark it as trusted again.
Microsoft Entra Backup and Recovery, which can recover changed Conditional Access policies, supports workforce tenants only. External ID tenants are not supported. See Does Microsoft back up Microsoft Entra External ID?.
Where the gaps are
- Changes are not recorded. If a policy's assignments, conditions or grant controls are edited, or the policy is turned off, nothing enters the recycle bin and the previous values are lost. A policy that no longer requires MFA still appears in the policy list as normal.
- The recycle bin expires. A policy deleted more than 30 days ago cannot be restored by you or by Microsoft.
- There is no point in time. The recycle bin restores one object as it was when deleted. It cannot show what your policies looked like before a change window.
How Revert covers Conditional Access
Every Revert recovery point contains the tenant's Conditional Access policies, named locations, custom authentication strengths and authentication context class references. Recovery points are kept for the retention you configure, which can be longer than 30 days.
Detect changes
By default, Revert compares each tenant's newest recovery point with the live tenant every day. A policy that was edited or turned off appears in the drift report as Modified, with the property that changed, its value in the recovery point and its value in the live tenant. A deleted policy appears as Deleted. Turn on alerts to be notified when a comparison finds differences. See Verify backups and detect drift and Set up alerts.
Restore a deleted policy
Restore the ConditionalAccess resource type in Missing only mode. Any policy the restore has to create is created disabled, whatever its state in the recovery point, so it cannot block sign-in before you review it. The restore results list each one under Manual actions required with the action to review the policy and then re-enable it. Policies that still exist are left as they are. An Operator can apply this restore.
Reverse a change to an existing policy
A Full restore of the ConditionalAccess resource type returns existing policies, named locations, authentication strengths and authentication contexts to their state in the recovery point, including whether each policy is enabled. A Full restore applies to every object of the selected type, not only the one that changed, so check the preview and the property-level differences before you apply it. Applying a Full restore needs the Admin role.
For the full procedure, see Restore from a recovery point.
Bracket planned changes
Before you change Conditional Access policies:
- In Revert, select Run backup to take a recovery point of every tenant.
- Make the change in the Microsoft Entra admin center.
- On the Drift page, select the tenant, choose the new recovery point as the baseline, compare it to Live tenant, and select Run comparison.
The report lists every object the change affected. Check it for changes you did not intend, especially where policy assignments overlap.
Verify after a restore
A policy that exists is not necessarily one that works. After a restore:
- read each restored policy's assignments and conditions, then enable it
- if you restored named locations from Microsoft's recycle bin, mark them as trusted again where they were trusted before
- confirm the policy applies to the users and applications you expect, using report-only mode or the sign-in logs
