Microsoft Graph API 403 - Could not obtain a WAC access token

Ryan David 5 Reputation points
2023-11-07T02:14:40.7833333+00:00

I have an integration with the Microsoft Graph API to read and write Excel files on OneDrive.

I am suddenly getting the errors:

HTTP Error occurred: 403 Client Error: Forbidden for url: https://graph.microsoft.com/v1.0/me/drive/items/%5C*%5C*%5C*/workbook/worksheets

Response Content: {"error":{"code":"AccessDenied","message":"Could not obtain a WAC access token.","innerError"....}}

I can still read the titles of the files through the API but cannot write to them. My code has not changed and my permissions are still the same with read/write.all etc and it was working less than 2 days ago.

I have tried removing the connection and re-authenticating, trying different Excel files, and ensuring they all have .xlsx extension however the error persists.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,446 questions
0 comments No comments
{count} vote