Table of Contents

[V8] ISSUE: You do not have permission to perform this action or access this resource. 403 Forbidden (Office 365 restore)

Article ID: 8074
Reviewed: 2020-04-14

Product Version:
AhsayCBS / AhsayOBM / AhsayACB: 8.1.0.0 to 8.x
OS: Windows

Problem Description

When performing an Office 365 restore of items OneDrive and or SharePoint, the following warning message is received in the restore report:

No. Type Timestamp Log
* ... ... ...
* warn YYYY/MM/DD hh:mm:ss Fail to update File "/directory/folder/file", Reason = "Access denied. You do not have permission
to perform this action or access this resource. 403 Forbidden"
* ... ... ...

Cause

This warning is returned by Office 365, indicating the “Allow users to run custom script” is disabled.

Resolution

To resolve this issue, enable the "allow custom script" option on the Office 365 domain.   Refer to the following Microsoft Document for details on how to enable such option:

https://docs.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script

Keywords

office 365, SharePoint, access denied, 403 forbidden, permission, custom script