I'm working on Mailbox restore API https://<hostname>:4443/v5/RestoreSessions/{restoreSessionId}/Organization/Mailboxes/action
Specifying one uniq Mailbox to be restored, this one is from a deleted O365 user.
1) The action returns for this mailbox
Code: Select all
"status": "Failed",
"error": "Mailbox processing skipped. Reason: UnresolvedNoEmailsFound"
2) The result of this action returns an unexpected content listing all the account mailbox and actions on each of them when the request was concerning a single mailbox:
request
Code: Select all
{"restoreTo":{
"mailbox":[{"Id":"d9fXXX00-03d7-4XX1-8900-b06dc77XXXXX"}],
"userCode":"DWJUXXX",
"changedItems":false,
"deletedItems":false,
"markrestoredAsunread":false,
"excludeDrafts":false,
"excludeDeletedItems":false,
"excludeInPlaceHoldItems":false,
"excludeLitigationHoldItems":false,
"recentItemRestorePeriod":30,
"skipUnresolved":true
}}
Code: Select all
{
"status": "Failed",
"details": [
{
"mailbox": {
"id": "a06d98a5-...",
"name": "All Company",
"email": "allcompany@xxx.onmicrosoft.com",
"isArchive": false,
"isPublic": false,
"status": "Success",
"details": {
"createdItemsCount": 0,
"mergedItemsCount": 0,
"failedItemsCount": 0,
"skippedItemsCount": 1,
"warnings": []
}
},
{
"mailbox": {
"id": "c49f566b-....",
"name": "xxx",
"email": "admin@xxxx.onmicrosoft.com",
"isArchive": false,
"isPublic": false,
....
},
"status": "Success",
"details": {
"createdItemsCount": 0,
"mergedItemsCount": 0,
"failedItemsCount": 0,
"skippedItemsCount": 84,
"warnings": []
}
},
...
{
"mailbox": {
"id": "d9fXXX00-03d7-4XX1-8900-b06dc77XXXXX", /* The mailbox concerned */
"name": "kenny southpark",
"email": "kenny@xxxxx.onmicrosoft.com",
"isArchive": false,
"isPublic": false,
...
"status": "Failed",
"error": "Mailbox processing skipped. Reason: UnresolvedNoEmailsFound"
}
]
}