Most Entra ID deletions are forgiving. A deleted user, group or app registration sits in a recycle bin for 30 days, and one click brings it back with everything intact.
A hard delete is different. The object is gone from the directory, and Microsoft's own documentation is blunt about it: neither your administrators nor Microsoft can restore it. The only path left is to create a new object and rebuild what the old one did.
This article covers how objects end up hard-deleted, what Microsoft's native tools can and can't do about it, and what "recreate" actually involves when it happens to you.
In this article
Soft delete vs hard delete: why the difference matters
When you delete a user, a Microsoft 365 group, a cloud security group or an app registration, Entra ID soft deletes it. The object can't be used for sign-in or access, but it keeps its properties and relationships for 30 days. Restore it inside that window and it comes back with the same object ID, the same group memberships, roles and app assignments.
A handful of other object types also support soft delete: service principals, administrative units, Conditional Access policies and named locations. Everything else is hard deleted the moment you delete it.
A hard-deleted object is permanently removed. There is no restore button, no support ticket that brings it back, and no backup inside Microsoft that recreates it. You create a new object instead, and that new object has a new ID.
The object ID is the part that hurts. Group memberships, app role assignments, Conditional Access exclusions, administrative unit scopes and external systems all reference objects by ID. A new object with the same name is, to all of them, a stranger.
How objects end up hard-deleted
Hard deletes rarely look dramatic when they happen. The usual paths are:
- The 30-day window runs out. A soft-deleted object nobody restores is hard deleted automatically. A user deleted by an offboarding workflow on the first of the month is gone for good by the end of it.
- Someone empties the recycle bin. An administrator permanently deletes an item from the deleted users or deleted applications list, often while tidying up.
- Automation does it. Cleanup scripts for stale users, abandoned groups or unused apps that call a permanent delete, or that run twice.
- The object type never had soft delete. Deleting an object outside the supported list is a hard delete straight away.
- An attacker does it on purpose. With a privileged account, soft delete followed by permanent delete takes seconds and removes the easy recovery path.
The audit log records every deletion, but it doesn't always tell you which kind it was. A "Delete group" entry can be a soft delete of a security group or a hard delete of another group type. If you want to know what you lost, you need to know what you had.
What Microsoft's native tools can and can't do
Microsoft has added real protection here over the past year, and it is worth using.
Soft delete is the first line of defense. It covers the most common mistakes, as long as somebody notices within 30 days.
Microsoft Entra Backup and Recovery takes a daily backup of supported objects and can roll their properties back to an earlier state: up to seven days on the Standard plan included with Entra ID P1 or P2, or up to 30 days with the paid Premium plan (in preview). It restores soft-deleted objects rather than recreating them. Microsoft states plainly that it doesn't recover or recreate hard-deleted objects.
Hard Deletion Protection (in preview) blocks permanent deletion of a protected object for seven days after it's soft deleted. It supports cloud users, cloud-only groups, applications and service principals, and it has to be switched on object by object. Once enabled, it can't be turned off. It buys time. It doesn't recover anything that is already gone, and after the seven days the object can be permanently deleted as before.
Protected actions let you put Conditional Access in front of sensitive operations, including hard deletion, so a stolen session alone isn't enough to purge objects.
Together, these make an accidental hard delete much less likely. None of them changes what happens once one has occurred.
Recovering a hard-deleted object: what "recreate" really means
Recovery after a hard delete is reconstruction. How painful it is depends on how much you know about the object you lost.
Users. Create a new account with the same UPN. Then rebuild everything else: profile attributes, group memberships, directly assigned roles, licenses, app assignments, manager relationships. The user re-registers MFA and gets a new password. Mailbox and OneDrive data have their own recovery rules and are outside the scope of this article.
Groups. Create a new group of the same type, re-add members and owners, then find every place the old group was used: app assignments, Conditional Access policies, access packages, administrative unit scopes, license assignment. Each of those still points at an ID that no longer exists.
App registrations. Recreate the registration with its redirect URIs, API permissions, app roles, exposed scopes and token configuration. The app gets a new application ID, so every client that authenticates with the old one breaks. Secrets and certificates have to be issued again, admin consent granted again, and the new values distributed to whoever uses them.
Anything that referenced the old object. This is where most of the time goes. Conditional Access exclusions, role assignments, PIM assignments and external systems keyed on object IDs all need updating by hand.
The practical test is simple: could you rebuild this object, with its relationships, from what you have written down today? For most tenants the honest answer is "for some of them".
Where an independent backup changes the outcome
An independent backup doesn't bring a hard-deleted object back from the dead either. Nothing can. What it changes is the starting point for the rebuild.
Instead of reconstructing an object from memory and old screenshots, you recreate it from its last known configuration: its attributes, its memberships, its app settings. The work becomes a guided restore rather than an investigation.
Kasca takes this approach. It keeps a copy of Entra ID objects on infrastructure you operate, and it can recreate supported hard-deleted objects (users, groups with their memberships, and app registrations) from that saved configuration. The limits are the same ones described above. The recreated object gets a new object ID. Passwords, client secrets and certificate private keys can't be read through Microsoft Graph, so credentials have to be reset or issued again. References to the old ID elsewhere still need updating.
It also helps with the step before recovery: knowing what you lost. A backup that holds object types and configuration over time tells you whether that "Delete group" entry was a security group with 400 members or an empty test group.
We covered the broader question of where such a copy should live in Why Store Entra ID Backups Outside the Microsoft Cloud?
| Question | Soft-deleted (within 30 days) | Hard-deleted, no backup | Hard-deleted, with an independent backup |
|---|---|---|---|
| Can the original object come back? | Yes, restored as it was | No | No, a new object is created from saved configuration |
| Object ID | Preserved | New ID | New ID |
| Attributes and settings | Preserved | Rebuilt from memory or documentation | Recreated from the last backed-up state |
| Group memberships and assignments | Preserved | Rebuilt by hand | Memberships recreated for supported objects; other references updated by hand |
| Passwords, secrets and certificates | Preserved | Reset or issued again | Reset or issued again |
| References elsewhere (policies, external systems) | Keep working | Must be found and updated | Must be updated, but the backup shows what existed |
A backup doesn't turn a hard delete back into a soft delete. It turns an investigation into a restore.
A hard-delete readiness checklist
You can't undo a hard delete, so the work happens beforehand.
- Turn on Hard Deletion Protection for your critical objects. Break-glass accounts, groups used in Conditional Access, and the app registrations your business depends on. Remember it is permanent once enabled.
- Protect the hard-delete action itself. Use protected actions so permanent deletion requires a fresh, strong authentication.
- Review the recycle bin on a schedule. Somebody should look at deleted users, groups and applications every week, before the 30 days run out.
- Keep cleanup scripts away from permanent delete. Let automation soft delete. Make a human approve anything permanent.
- Know your known-good state. Record object IDs, group types, memberships and app configuration somewhere outside the tenant, whether that's a backup product or your own export.
- Rehearse one rebuild. Recreate a test app registration from your records and see what breaks. It is far cheaper to learn that on a Tuesday afternoon than during an incident.
Hard deletes are rare. When they happen, they tend to hit the objects that matter most, because those are the ones attackers and cleanup scripts both go after. Have you checked how many of yours you could rebuild today?
Does your recovery plan go far enough?
See how Kasca adds a customer-controlled recovery layer for Microsoft Entra ID with retention you control, granular recovery, and backups outside the tenant they protect.
Hard-deleted Entra ID objects: FAQ
Common questions about hard deletes, what native tools cover, and what it takes to rebuild.
Can you recover a hard-deleted user in Microsoft Entra ID?
No. Once a user is hard deleted, neither your administrators nor Microsoft can restore it. You create a new user, which gets a new object ID, and rebuild its attributes, group memberships, roles, licenses and app assignments.
How long are deleted Entra ID objects recoverable?
Users, Microsoft 365 groups, cloud security groups, app registrations and a few other object types are soft deleted and can be restored for 30 days. After that they are hard deleted automatically. Object types without soft delete are hard deleted immediately.
Does Microsoft Entra Backup and Recovery restore hard-deleted objects?
No. Microsoft states that Backup and Recovery doesn't recover or recreate hard-deleted objects. Hard Deletion Protection (in preview) can block permanent deletion of protected objects for seven days after a soft delete, but it doesn't bring back objects that are already gone.
What do you lose when you recreate a hard-deleted object?
The object ID, and with it every relationship that pointed to it: group memberships, app role assignments, Conditional Access exclusions and references in external systems. Passwords, client secrets and certificates also have to be reset or issued again.
How can I prevent hard deletes in Entra ID?
Enable Hard Deletion Protection for critical objects, use protected actions so permanent deletion requires strong reauthentication, keep cleanup automation to soft deletes, and review deleted items regularly before the 30-day window ends.