Symptoms
Backup of Microsoft 365 or Exchange public folders fails with an 'access denied' error or completes with warning. For example:
Cannot retrieve the contents of Microsoft 365 mailbox folder 'NNNN': '[Microsoft][ews-code=ErrorAccessDenied]: Access is denied. Check credentials and try again., ICS synchronization failed.
Solution
The issue is caused by the lack of permission to Public folder for the user.
Identify the user performing backup
- In Cyber Protection Console, open All properties of affected public folder:
- Locate accessUser property and note its value:
- Modify URL in browser so it should look like https://<your_data_center>/api/resource_manager/v1/o365/users?limit=1000 and run it.
For example: https://us5-cloud.acronis.com/api/resource_manager/v1/o365/users?limit=1000
Do not open new tab, just run request in existing tab to ensure you are authenticated in cloud. - In the obtained JSON data, find the noted value. Note the corresponding user:
Check and assign permissions
Verify that the user has sufficient permissions for public folder backup or restore:
- To back up a public folder, your account must have the ReadItems permission.
- To recover a public folder, it must have the CreateItems, EditAllItems, DeleteAllItems, CreateSubfolders permissions.
The default Owner and PublishingEditor roles have these permissions.
Do the following to check (and assign) the permissions:
Exchange Server 2013, 2016, 2019
- Log in to your Exchange admin center.
- On the left pane, click public folders.
- On the public folders tab, click the ellipsis (…) button, and then click Root permissions.
- Check whether your account is on the list.
- If this account is not listed, you need to add ir. Click the plus (+) button.
- The public folder permissions window opens. Click browse and select your backup account. Click OK.
- In the Permission level drop-down menu, select Owner. Click Save.
- Select the Apply changes to this public folder and all its subfolders checkbox. Click Save.
Microsoft 365
- Log into the Microsoft 365 admin account.
- In the upper-left corner, click the grid icon.
- Click the Admin button to go to the admin center.
- On the left pane, find the ADMIN button. Click the arrow next to this button to expand the options.
- Click Exchange.
- Click Public Folders.
- On the public folders tab, click the ellipsis (…) button, and then click Root permissions.
- Check whether your account is on the list.
- If this account is not listed, you need to add it. Click the plus (+) button.
- The public folder permissions window opens. Click browse and select your account. Click OK.
- In the Permission level drop-down menu, select Owner. Click Save.
- Select the Apply changes to this public folder and all its subfolders checkbox. Click Save.