Graph endpoint /me/drive/sharedWithMe is not paginating

Edwardenis de los Santos 1 Reputation point
2021-06-09T14:34:15.267+00:00

Hello Folks,

I just realize that the graph endpoint /me/drive/sharedWithMe is returning values only for the first 200 files sharedWithYou. As the documentation says it should return a property @odata.nextLink to request for the next list of files but it always returns null.

And I cannot use $skip, $top Odata parameters to handle the pagination by myself.
103892-image.png

Microsoft Security | Microsoft Graph
{count} votes

2 answers

Sort by: Most helpful
  1. Diya Ahuja 5 Reputation points
    2023-06-30T18:10:15.2433333+00:00

    The OneDrive API supports pagination of results when using the /me/drive/sharedWithMe endpoint. The API will return a maximum of 200 results per request, and will include an @odata.nextLink property in the response if there are more results available. To retrieve the next page of results, make a new request to the URL provided in the @odata.nextLink property. You can also use the $skip and $top OData query parameters to control the pagination of results. For more information, please refer to the OneDrive API documentation.

    0 comments No comments

  2. Diya Ahuja 5 Reputation points
    2023-06-30T18:12:07.77+00:00

    The OneDrive API supports pagination of results when using the /me/drive/sharedWithMe endpoint. The API will return a maximum of 200 results per request, and will include an @odata.nextLink property in the response if there are more results available. To retrieve the next page of results, make a new request to the URL provided in the @odata.nextLink property. You can also use the $skip and $top OData query parameters to control the pagination of results. For more information, please refer to the OneDrive API documentation.

    0 comments No comments

Your answer

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