ESC
Type to search...

BackupRestore-Configuration.ReadWrite.All

Export JSON
Export CSV
Copy URL
Print
ApplicationDelegated Read/Write All Resources

Allows the app to read and update the backup configuration, and list of Microsoft 365 service resources to be backed-up, without a signed-in user.

In short

BackupRestore-Configuration.ReadWrite.All is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the BackupRestore-Configuration category. Allows the app to read and update the backup configuration, and list of Microsoft 365 service resources to be backed-up, without a signed-in user. It grants read and write access to resources. Application permissions always require admin consent.

Permission data: November 17, 2026 at 3:06 AM UTC
Delegated Access App-Only Access

Permission Details

Application Permission

Read and edit all backup configuration policies

Allows the app to read and update the backup configuration, and list of Microsoft 365 service resources to be backed-up, without a signed-in user.

Delegated Permission Admin consent required

Read and edit backup configuration policies

Allows the app to read and update the backup configuration, and list of Microsoft 365 service resources to be backed-up, on behalf of the signed in user.

Properties

Microsoft Graph v1.0 endpoint-derived-docs

Properties is shown from stable Microsoft Graph v1.0 metadata.

Property Type Description
createdBy identitySet The identity of person who created the policy.
createdDateTime DateTimeOffsetNullable The time of creation of the policy.
displayName StringNullable Name of the policy to be created.
id String The unique identifier of the protection rule associated to the policy.
lastModifiedBy identitySet The identity of the person who last modified the policy.
lastModifiedDateTime DateTimeOffsetNullable The timestamp of the last modification of the policy.
retentionSettings retentionSetting collection Retention settings for the policy. Inherited from protectionPolicyBase.
status protectionPolicyStatus Status of the policy. This value is an aggregated status of the protection units. The possible values are: inactive, activeWithErrors, updating, active, unknownFutureValue.
isEnabled boolean
mailboxInclusionRules mailboxProtectionRule collection The rules associated with the Exchange protection policy.
mailboxProtectionUnits mailboxProtectionUnit collection The protection units (mailboxes) that are protected under the Exchange protection policy.
mailboxProtectionUnitsBulkAdditionJobs mailboxProtectionUnitsBulkAdditionJob collection
protectionPolicyArtifactCount object

JSON Representation

Microsoft Graph v1.0 endpoint-derived-docs

JSON representation is shown from stable Microsoft Graph v1.0 metadata.

JSON representation
{
  "@odata.type": "#microsoft.graph.exchangeProtectionPolicy",
  "id": "String (identifier)",
  "displayName": "String",
  "retentionSettings": [
    {
      "@odata.type": "microsoft.graph.retentionSetting"
    }
  ],
  "status": "String",
  "createdDateTime": "String (timestamp)",
  "createdBy": {
    "@odata.type": "microsoft.graph.identitySet"
  },
  "lastModifiedDateTime": "String (timestamp)",
  "lastModifiedBy": {
    "@odata.type": "microsoft.graph.identitySet"
  }
}

Relationships

Microsoft Graph v1.0 endpoint-derived-docs

Relationships is shown from stable Microsoft Graph v1.0 metadata.

Relationship Type Description
mailboxInclusionRules mailboxProtectionRule collection The rules associated with the Exchange protection policy.
mailboxProtectionUnits mailboxProtectionUnit collection The protection units (mailboxes) that are protected under the Exchange protection policy.
mailboxProtectionUnitsBulkAdditionJobs mailboxProtectionUnitsBulkAdditionJob collection Related mailboxProtectionUnitsBulkAdditionJobs data exposed by this resource.
retentionSettings retentionSetting collection Contains the retention setting details for the policy.
mailboxExclusionUnits mailboxExclusionUnit collection The mailbox exclusion units associated with the Exchange protection policy.
mailboxExclusionUnitsBulkAdditionJobs mailboxExclusionUnitsBulkAdditionJob collection The list of bulk addition jobs for mailbox exclusion units associated with the Exchange protection policy.

Graph Methods

Delegated access App-only access
Exact Microsoft Learn match

Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
GET /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules
GET /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}
GET /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules
GET /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}
GET /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules
GET /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}
POST /solutions/backupRestore/exchangeProtectionPolicies/
POST /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules
POST /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}/deleteAndUnprotect
POST /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}/run
POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies
POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules
POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}/deleteAndUnprotect
POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}/run
POST /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}/activate
POST /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}/deactivate
POST /solutions/backupRestore/protectionUnits/{protectionUnitBaseId}/cancelOffboard
POST /solutions/backupRestore/protectionUnits/{protectionUnitBaseId}/offboard
POST /solutions/backupRestore/sharePointProtectionPolicies/
POST /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules
POST /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}/run
PATCH /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}
PATCH /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}
PATCH /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}
PATCH /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}
PATCH /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}
DELETE /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}
DELETE /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}
DELETE /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}
DELETE /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}
Exact Microsoft Learn match

Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
GET /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxExclusionUnits
GET /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxExclusionUnitsBulkAdditionJobs
GET /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxExclusionUnitsBulkAdditionJobs/{mailboxExclusionUnitsBulkAdditionJobId}
GET /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules
GET /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}
GET /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveExclusionUnits
GET /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveExclusionUnitsBulkAdditionJobs
GET /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveExclusionUnitsBulkAdditionJobs/{driveExclusionUnitsBulkAdditionJobId}
GET /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules
GET /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}
GET /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteExclusionUnits
GET /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteExclusionUnitsBulkAdditionJobs
GET /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteExclusionUnitsBulkAdditionJobs/{siteExclusionUnitsBulkAdditionJobId}
GET /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules
GET /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}
POST /solutions/backupRestore/exchangeProtectionPolicies/
POST /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxExclusionUnitsBulkAdditionJobs
POST /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules
POST /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}/deleteAndUnprotect
POST /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}/run
POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies
POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveExclusionUnitsBulkAdditionJobs
POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules
POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}/deleteAndUnprotect
POST /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}/run
POST /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}/activate
POST /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}/deactivate
POST /solutions/backupRestore/protectionUnits/{protectionUnitBaseId}/cancelOffboard
POST /solutions/backupRestore/protectionUnits/{protectionUnitBaseId}/offboard
POST /solutions/backupRestore/sharePointProtectionPolicies/
POST /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteExclusionUnitsBulkAdditionJobs
POST /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules
POST /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}/run
PATCH /backupRestore/driveProtectionUnits/{driveProtectionUnitId}
PATCH /backupRestore/mailboxProtectionUnits/{mailboxProtectionUnitId}
PATCH /backupRestore/siteProtectionUnits/{siteProtectionUnitId}
PATCH /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}
PATCH /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}
PATCH /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}
PATCH /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}
PATCH /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}
DELETE /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules/{mailboxProtectionRuleId}
DELETE /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules/{driveProtectionRuleId}
DELETE /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}
DELETE /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
Get-MgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules
List mailboxInclusionRules
Get-MgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}
Get protectionRuleBase
Get-MgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules
List driveInclusionRules
Get-MgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}
Get protectionRuleBase
Get-MgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules
List siteInclusionRules
Get-MgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}
Get protectionRuleBase
Invoke-MgDeactivateSolutionBackupRestoreProtectionPolicy /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}/deactivate
protectionPolicyBase: deactivate
Invoke-MgOffboardSolutionBackupRestoreProtectionUnit /solutions/backupRestore/protectionUnits/{protectionUnitBaseId}/offboard
protectionUnitBase: offboard
Remove-MgSolutionBackupRestoreProtectionPolicy /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}
Delete protectionPolicyBase
Update-MgSolutionBackupRestoreExchangeProtectionPolicy /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}
Update exchangeProtectionPolicy
Update-MgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}
Update oneDriveForBusinessProtectionPolicy
Update-MgSolutionBackupRestoreSharePointProtectionPolicy /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}
Update sharePointProtectionPolicy
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
Get-MgBetaSolutionBackupRestoreExchangeProtectionPolicyMailboxExclusionUnit /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxExclusionUnits
List mailboxExclusionUnits
Get-MgBetaSolutionBackupRestoreExchangeProtectionPolicyMailboxExclusionUnitBulkAdditionJob /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxExclusionUnitsBulkAdditionJobs
List mailboxExclusionUnitsBulkAdditionJobs
Get-MgBetaSolutionBackupRestoreExchangeProtectionPolicyMailboxExclusionUnitBulkAdditionJob /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxExclusionUnitsBulkAdditionJobs/{mailboxExclusionUnitsBulkAdditionJobId}
Get mailboxExclusionUnitsBulkAdditionJob
Get-MgBetaSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}/mailboxInclusionRules
List mailboxInclusionRules
Get-MgBetaSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}
Get protectionRuleBase
Get-MgBetaSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveExclusionUnit /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveExclusionUnits
List driveExclusionUnits
Get-MgBetaSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveExclusionUnitBulkAdditionJob /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveExclusionUnitsBulkAdditionJobs
List driveExclusionUnitsBulkAdditionJobs
Get-MgBetaSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveExclusionUnitBulkAdditionJob /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveExclusionUnitsBulkAdditionJobs/{driveExclusionUnitsBulkAdditionJobId}
Get driveExclusionUnitsBulkAdditionJob
Get-MgBetaSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}/driveInclusionRules
List driveInclusionRules
Get-MgBetaSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}
Get protectionRuleBase
Get-MgBetaSolutionBackupRestoreSharePointProtectionPolicySiteExclusionUnit /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteExclusionUnits
List siteExclusionUnits
Get-MgBetaSolutionBackupRestoreSharePointProtectionPolicySiteExclusionUnitBulkAdditionJob /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteExclusionUnitsBulkAdditionJobs
List siteExclusionUnitsBulkAdditionJobs
Get-MgBetaSolutionBackupRestoreSharePointProtectionPolicySiteExclusionUnitBulkAdditionJob /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteExclusionUnitsBulkAdditionJobs/{siteExclusionUnitsBulkAdditionJobId}
Get siteExclusionUnitsBulkAdditionJob
Get-MgBetaSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules
List siteInclusionRules
Get-MgBetaSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}/siteInclusionRules/{siteProtectionRuleId}
Get protectionRuleBase
Invoke-MgBetaDeactivateSolutionBackupRestoreProtectionPolicy /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}/deactivate
protectionPolicyBase: deactivate
Invoke-MgBetaOffboardSolutionBackupRestoreProtectionUnit /solutions/backupRestore/protectionUnits/{protectionUnitBaseId}/offboard
protectionUnitBase: offboard
Remove-MgBetaSolutionBackupRestoreProtectionPolicy /solutions/backupRestore/protectionPolicies/{protectionPolicyBaseId}
Delete protectionPolicyBase
Update-MgBetaSolutionBackupRestoreExchangeProtectionPolicy /solutions/backupRestore/exchangeProtectionPolicies/{exchangeProtectionPolicyId}
Update exchangeProtectionPolicy
Update-MgBetaSolutionBackupRestoreOneDriveForBusinessProtectionPolicy /solutions/backupRestore/oneDriveForBusinessProtectionPolicies/{oneDriveForBusinessProtectionPolicyId}
Update oneDriveForBusinessProtectionPolicy
Update-MgBetaSolutionBackupRestoreSharePointProtectionPolicy /solutions/backupRestore/sharePointProtectionPolicies/{sharePointProtectionPolicyId}
Update sharePointProtectionPolicy

Code Examples

C# / .NET SDK
Delete protectionPolicyBase
// Code snippets are only available for the latest version. Current version is 5.x

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Solutions.BackupRestore.ProtectionPolicies["{protectionPolicyBase-id}"].DeleteAsync((requestConfiguration) =>
{
	requestConfiguration.Headers.Add("Authorization", "Bearer <Access-Token>");
});
JavaScript
Create protectionRuleBase
const options = {
	authProvider,
};

const client = Client.init(options);

const siteProtectionRule = {
    siteExpression: '((displayName -contains \'Finance\')  -or  (displayName -contains \'Legal\'))'
};

await client.api('/solutions/backupRestore/sharePointProtectionPolicies/71633878-8321-4950-bfaf-ed285bdd1461/siteInclusionRules')
	.post(siteProtectionRule);
PowerShell
Delete protectionPolicyBase
Import-Module Microsoft.Graph.BackupRestore

Remove-MgSolutionBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId
Python
Delete protectionPolicyBase
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.solutions.backup_restore.protection_policies.item.protection_policy_base_item_request_builder import ProtectionPolicyBaseItemRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python

request_configuration = RequestConfiguration()
request_configuration.headers.add("Authorization", "Bearer <Access-Token>")

await graph_client.solutions.backup_restore.protection_policies.by_protection_policy_base_id('protectionPolicyBase-id').delete(request_configuration = request_configuration)

App Registration

1

Navigate to Azure Portal

Go to App registrations in Microsoft Entra admin center

2

Add API Permission

Select your app → API permissions → Add a permission → Microsoft Graph

3

Select Permission Type

Choose Application permissions or delegated permissions and search for BackupRestore-Configuration.ReadWrite.All

4

Grant Admin Consent

Application permissions always require admin consent.

Frequently asked questions

What is the BackupRestore-Configuration.ReadWrite.All Microsoft Graph permission?

BackupRestore-Configuration.ReadWrite.All is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the BackupRestore-Configuration category. Allows the app to read and update the backup configuration, and list of Microsoft 365 service resources to be backed-up, without a signed-in user. It grants read and write access to resources. Application permissions always require admin consent. It is mapped to the Microsoft Graph exchangeprotectionpolicy resource type. 75 documented Microsoft Graph REST methods require it. 33 Microsoft Graph PowerShell commands are documented for it.

Is BackupRestore-Configuration.ReadWrite.All an application or a delegated permission?

BackupRestore-Configuration.ReadWrite.All is available as both an application permission (app-only access, no signed-in user) and a delegated permission (access on behalf of a signed-in user).

Does BackupRestore-Configuration.ReadWrite.All require admin consent?

Application permissions always require admin consent.

What is the permission ID (GUID) for BackupRestore-Configuration.ReadWrite.All?

For BackupRestore-Configuration.ReadWrite.All, the application (app role) ID is 18133149-5489-40ac-80f0-4b6fa85f6cdc, and the delegated (OAuth2 scope) ID is a0244d16-171c-4496-8ffb-7b9b6954d339. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.