cancel
Showing results for 
Search instead for 
Did you mean: 

Office 365 Error "Access denied. You do not have permission to perform this action or access this resource."

Issue

When running a workflow, the workflow completes successfully for some users, however other uses encounter an Access Denied error.

message from workflow status as below: HTTP Forbidden to https://xxxxx.sharepoint.com/SubSite/_api/web/lists(guid'87d30f08-7f60-4b17-b144-a100bfab2dfb')/Item...) Correlation Id: b809e04e-6ecd-f523-8037-e5e6609b288b Instance Id: 977093d3-2e59-4de6-b9d3-46006167bbfe
Access denied. You do not have permission to perform this action or access this resource. Retry now

or

Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 403 {“error”:”code”:”-2147024891, System.UnauthorizedAccessException”,”message”:{“lang”:”en-US”,”value”:”Access denied. You do not have permission to perform this action or access this resource.”}}}

Resolution

Ensure that the affected user accounts have Contribute permissions on the list where the workflow is running, any list that the workflow is attempting to update, the Task list associated with the workflow, and the Workflow History list for the site. 

Error Code

HTTP Forbidden to https://xxxxx.sharepoint.com/SubSite/_api/web/lists(guid'87d30f08-7f60-4b17-b144-a100bfab2dfb')/Item...) Correlation Id: b809e04e-6ecd-f523-8037-e5e6609b288b Instance Id: 977093d3-2e59-4de6-b9d3-46006167bbfe Access denied. You do not have permission to perform this action or access this resource. Retry now or An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 403 {“error”:”code”:”-2147024891, System.UnauthorizedAccessException”,”message”:{“lang”:”en-US”,”value”:”Access denied. You do not have permission to perform this action or access this resource.”}}}

Additional Information

If storing the access token in a variable make sure no additional spaces are being added. Using the trim function on the variable that stores the access token removes invisible spaces that get inserted when dynamically getting data from fields from within the workflow. 

Related Links


Version history
Revision #:
32 of 32
Last update:
‎10-26-2018 11:05 AM
Updated by: