Error: 401 - FileOpenUserUnauthorized - Graph API

Baris 0 Reputation points
2024-05-27T09:45:11.61+00:00

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
{count} votes

1 answer

Sort by: Most helpful
  1. Tran Trong Nghia 5 Reputation points
    2024-09-30T10:06:54.68+00:00

    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.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.