Error Item not found in get WorkSheets

chen liao 96 Reputation points
2021-09-03T07:46:08.597+00:00

when I using "GET /me/drive/items/{id}/workbook/worksheets" throws error; I get the following error :

129019-qq%E5%9B%BE%E7%89%8720210903154134.png

I want to ask a Answer,thank you

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,295 questions
{count} votes

Accepted answer
  1. chen liao 96 Reputation points
    2021-09-17T10:51:48.237+00:00

    Files.ReadWrite is exist.

    133039-123.png
    may be the issue is I use the /users/{user id} api endpoint.

    I only use the /me/...?


1 additional answer

Sort by: Most helpful
  1. CarlZhao-MSFT 36,001 Reputation points
    2021-09-17T09:30:50.533+00:00

    This is an error caused by your use of the /users endpoint, don't use the /users/{user id} api endpoint, because the /users context is currently not supported. You can only use the /me endpoint, and then you need to use the authorization flow that obtains the token in the delegation scenario, such as the auth code flow or ROPC flow, cannot use the client credential flow.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments