FileOpenUserUnauthorized error for excel API

kishan parmar 0 Reputation points
2024-03-20T10:15:33.05+00:00

Hi,

I hope you are doing well. I am exploring Microsoft Graph Explorer for excel API and testing get worksheets in workbook endpoint. Although I have provided correct drive-item-id , I'm keep getting following error.

{
    "error": {
        "code": "FileOpenUserUnauthorized",
        "message": "You do not have permissions to open this file in the browser.",
        "innerError": {
            "code": "unauthorizedUncategorized",
            "message": "Required authentication information for the resource is either missing or invalid.",
            "innerError": {
                "code": "FileOpenUserUnauthorized",
                "message": "You do not have permissions to open this file in the browser."
            },
            "date": "2024-03-20T09:56:42",
            "request-id": "4270-9686-cfe5528d974b",
            "client-request-id": "b7e4b-a36a-3003-449e4d4f90f0"
        }
    }
}

I have given all permission for onedrive and file still it is no use.

Can anyone help me with this error?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,193 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,638 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,673 questions
{count} votes

2 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 39,181 Reputation points
    2024-03-21T07:42:40.4433333+00:00

    Hi @kishan parmar

    Please make sure you have granted the Files.ReadWrite permission.

    d927e4e0-a45f-4131-b807-5716935f3e77

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


  2. Baris 0 Reputation points
    2024-05-27T09:52:10.9366667+00:00

    I opened a new question about this problem, ı have too the same problem. You can follow the link below.

    0 comments No comments