question

NicolasPozzi-0474 avatar image
0 Votes"
NicolasPozzi-0474 asked NicolasPozzi-0474 answered

Sites/{siteId}/lists does not return anything anymore

Hello everyone,

Here is the query : https://graph.microsoft.com/v1.0/sites/{siteId}/lists

One month ago we were able to run this Graph query normally, but today, Graph return an empty list

![102132-image.png][2]


However, when I go to the SharePoint site, logged in with the same user I used for the Graph request, all the libraries are listed.

102059-annotation-2021-06-03-143937.png

The user is part of the admin group of this SharePoint site.

I would like to simply list the libraries using Graph.

Is it a bug of Graph or am I missing something ?

Thank you :)


[2]: /answers/storage/attachments/102048-image.png

microsoft-graph-sites-lists
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered

Hi @NicolasPozzi-0474,

I used to run into the similar issue when trying to list all sites in the tenant, resolved it by add the search parameter in the end: ?search=*

You could have a try, it may also work for you:

 https://graph.microsoft.com/v1.0/sites/{siteId}/lists?search=*


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

NicolasPozzi-0474 avatar image
0 Votes"
NicolasPozzi-0474 answered

Hi @MichaelHan-MSFT,

Unfortunately nothing has changed, the Graph query still returns an empty list

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

NicolasPozzi-0474 avatar image
0 Votes"
NicolasPozzi-0474 answered

Hello guys, nobody have a clue ? I'd like to add that the query is working normally on our other tenants.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.