I had the same problem. I solved it by accessing One Drive, then opening the Excel file in the browser. Then I called the /workbook/worksheets API and it worked. I also had the problem of the /search api returning an empty list. And I tried searching for a file by keyword on the One Drive web (remember to press Enter to display the results). And this api also worked again.
Error: 401 - FileOpenUserUnauthorized - Graph API
Baris
0
Reputation points
When I make a request to this endpoint in the doc then ı get the following error and ı am sure, ı have the necessary "permissions" for the request.
Error and Message:
- Error: 401 - FileOpenUserUnauthorized
- Message: You do not have permissions to open this file in the browser.
I did some research and the same problem is mentioned in forums here:
Microsoft Security Microsoft Graph
13,721 questions