BackupRestore-Restore.Read.All
Allows the app to read all restore sessions, without a signed-in user.
Permission Details
Read all restore sessions
Allows the app to read all restore sessions, without a signed-in user.
87853aa5-0372-4710-b34b-cef27bb7156e
Read restore sessions
Allows the app to read restore sessions, on behalf of the signed in user.
94b36f78-434f-4904-8c08-421d9a9c1dc2
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
id |
String |
The unique identifier of the restore session created. |
completedDateTime |
DateTimeOffsetNullable |
The time of creation of the restore session. |
createdBy |
identitySet |
The identity of person who created the restore session. |
createdDateTime |
DateTimeOffsetNullable |
The time of completion of the restore session. |
error |
publicError |
Contains error details if the restore session fails or completes with an error. |
lastModifiedBy |
identitySet |
Identity of the person who last modified this restore session. |
lastModifiedDateTime |
DateTimeOffsetNullable |
Timestamp of last modification of this restore session. |
restoreJobType |
restoreJobType |
Indicates whether the restore session was created normally or by a bulk job. |
restoreSessionArtifactCount |
restoreSessionArtifactCount |
The number of metadata artifacts that belong to this restore session. |
status |
restoreSessionStatus |
Status of the restore session. The value is an aggregated status of the restored artifacts. The possible values are: draft, activating, active, completedWithError, completed, unknownFutureValue, failed. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: failed. |
granularMailboxRestoreArtifacts |
granularMailboxRestoreArtifact collection |
|
mailboxRestoreArtifacts |
mailboxRestoreArtifact collection |
A collection of restore points and destination details that can be used to restore Exchange mailboxes. |
mailboxRestoreArtifactsBulkAdditionRequests |
mailboxRestoreArtifactsBulkAdditionRequest collection |
A collection of user mailboxes and destination details that can be used to restore Exchange mailboxes. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.exchangeRestoreSession",
"id": "String (identifier)",
"status": "String",
"restoreJobType": "String",
"restoreSessionArtifactCount": {
"@odata.type": "microsoft.graph.restoreSessionArtifactCount"
},
"createdDateTime": "String (timestamp)",
"createdBy": {
"@odata.type": "microsoft.graph.identitySet"
},
"completedDateTime": "String (timestamp)",
"lastModifiedDateTime": "String (timestamp)",
"lastModifiedBy": {
"@odata.type": "microsoft.graph.identitySet"
},
"error": {
"@odata.type": "microsoft.graph.publicError"
}
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
mailboxRestoreArtifacts |
mailboxRestoreArtifact collection |
A collection of restore points and destination details that can be used to restore Exchange mailboxes. |
mailboxRestoreArtifactsBulkAdditionRequests |
mailboxRestoreArtifactsBulkAdditionRequest collection |
A collection of user mailboxes and destination details that can be used to restore Exchange mailboxes. |
granularMailboxRestoreArtifacts |
granularMailboxRestoreArtifact collection |
Related granularMailboxRestoreArtifacts data exposed by this resource. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// 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
var result = await graphClient.Solutions.BackupRestore.OneDriveForBusinessRestoreSessions["{oneDriveForBusinessRestoreSession-id}"].DriveRestoreArtifactsBulkAdditionRequests["{driveRestoreArtifactsBulkAdditionRequest-id}"].GetAsync();
const options = {
authProvider,
};
const client = Client.init(options);
let driveRestoreArtifactsBulkAdditionRequest = await client.api('/solutions/backupRestore/oneDriveForBusinessRestoreSessions/493635f0-b8c0-4c7f-bcb7-b20c85d97efe/driveRestoreArtifactsBulkAdditionRequests/e79d0a79-7210-4369-9177-6297f0555242')
.get();
Import-Module Microsoft.Graph.BackupRestore
Get-MgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest -OneDriveForBusinessRestoreSessionId $oneDriveForBusinessRestoreSessionId -DriveRestoreArtifactsBulkAdditionRequestId $driveRestoreArtifactsBulkAdditionRequestId
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.solutions.backup_restore.one_drive_for_business_restore_sessions.by_one_drive_for_business_restore_session_id('oneDriveForBusinessRestoreSession-id').drive_restore_artifacts_bulk_addition_requests.by_drive_restore_artifacts_bulk_addition_request_id('driveRestoreArtifactsBulkAdditionRequest-id').get()
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for BackupRestore-Restore.Read.All
Grant Admin Consent
Application permissions always require admin consent.