WAC access token error on shared Excel from another OneDrive account

porkchops 6 Reputation points

I first tried using Graph API to modify an Excel file on my own OneDrive account. Was able to read and add new rows of data.
Then I tried accessing from another Excel file that is shared to me from another OneDrive account. Was able to get the necessary drive id and item id from the sharedWithMe endpoint. I was able to fetch the remoteItem, however accessing the workbook functions (trying usedRange endpoint) will now give me a HTTP 403 Could not obtain a WAC access token. What am I missing here? I tried executing it also on the Graph Explorer but it doesn't show which permissions needed to execute (usedRange)


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,792 questions
{count} vote