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

2 answers

Sort by: Most helpful
  1. Tran Trong Nghia 10 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.

    2 people found this answer helpful.

  2. Jack 0 Reputation points
    2025-07-24T02:17:09.6333333+00:00

    This is still a problem on 24th July 2025!!!!!!!

    do something Microsoft! Stop layoff and start hiring.

    0 comments No comments

Your answer

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