User.DeleteRestore.All

User.DeleteRestore.All is available as both an application and a delegated permission in Microsoft Graph. Application access requires admin consent. Delegated access requires admin consent. See Microsoft's permissions reference.

Permission details

Versionv126 Nov 2026
PropertyApplicationDelegated
Display nameDelete and restore all usersDelete and restore users
DescriptionAllows the app to delete and restore all users, without a signed-in user.Allows the app to delete and restore all users, on behalf of the signed-in user.
Permission IDeccc023d-eccf-4e7b-9683-8813ab36cecc4bb440cd-2cf2-4f90-8004-aa2acd2537c5
Admin consent requiredYesYes
Privilege levelLevel 4 · CriticalThe broadest or most sensitive access, with substantial administrative or organizational impact.Level 4 · CriticalThe broadest or most sensitive access, with substantial administrative or organizational impact.

Roles that support this permission

21 roles

Request samples

4 samples
About these request samplesSome read operations use POST requests, such as searches that send query details in a request body. Samples and permission mappings are collated from multiple official Microsoft sources, including Microsoft Graph DevX and the PowerShell SDK. Differences between API versions and source metadata mean they may not always reflect actual endpoint behavior. Verify the current Microsoft Graph documentation before implementation.

application

  • DELETE
    /users/{id}
    PowerShellRemove-MgUserUsersLeast privilege
  • POST
    /directory/deletedItems/{id}/restore
    PowerShellRestore-MgDirectoryDeletedItemIdentity.DirectoryManagementLeast privilege

delegated

  • DELETE
    /users/{id}
    PowerShellRemove-MgUserUsersLeast privilege
  • POST
    /directory/deletedItems/{id}/restore
    PowerShellRestore-MgDirectoryDeletedItemIdentity.DirectoryManagementLeast privilege