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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,124 questions
{count} votes

3 answers

Sort by: Most helpful
  1. DasDune Thailand 5 Reputation points

    Same for me, my app runs without problem for years, and this morning got this error. My query is :!4981/workbook/worksheets('Documents')/usedRange.

    Not working in MS Graoh Explorer either.

    I guess the problem is on Microsoft side. Any clues ?

    1 person found this answer helpful.

  2. Abhishek 10 Reputation points

    I am running into this for personal OneDrive accounts. I consented Files.ReadWrite but still running into the same issue.

    "<id>/" works to get Excel workbook but "<id>/workbook/worksheets" show following error.

    Any help here would be appreciated. Screenshot 2024-06-04 at 5.08.34 PM

    1 person found this answer helpful.
    0 comments No comments

  3. François Gélinas 0 Reputation points

    Did you find a solution? My app also was running fine and than get this error.

    0 comments No comments