Could not obtain a WAC access token

254 views Asked by At

I am trying to access an excel worksheet from Microsoft Graph API but receiving the error:

"Could not obtain a WAC access token".

The permissions is attached in the image

enter image description here

and the URL I have built to try and get to the worksheets/create a session is this

GET https://graph.microsoft.com/v1.0/sites/<site id>/drives/<drive id>/root:/TEMP/Book.xlsx:/workbook/createSession
1

There are 1 answers

0
user2250152 On

According to the documentation you need delegated permission Files.ReadWrite.

Application permissions are not supported. What I know application permissions are not supported for working with excel workbooks (/workbook/xxx endpoints).