Error Item not found in get WorkSheets

chen liao 96 Reputation points

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


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.
11,101 questions
{count} votes

Accepted answer
  1. chen liao 96 Reputation points

    Files.ReadWrite is exist.

    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 39,021 Reputation points

    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