SharePoint hidden list’s item not appearing in GRAPH API search/query endpoint

Aamir Ansari 20 Reputation points
2024-08-31T10:37:32.5166667+00:00

I have a hidden SharePoint list with some items in it. I am trying to search for some items using the Graph API search/query endpoint, but I am not getting any results. I have tried with a non-hidden list, and it works fine. Is there any way to enable search on a hidden list? Also I have not find any documentation to make hidden list non-hidden. Is it possible?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,272 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,044 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xyza Xue_MSFT 25,546 Reputation points Microsoft Vendor
    2024-09-02T06:10:43.5033333+00:00

    Hi @Aamir Ansari ,

    I'm glad to hear you solve the problem, I would make a brief summary of this thread:

    Current status:

    The issue has been solved. The solution is: update List hidden properties using SharePoint REST api. Here's the Stack overflow answer: https://sharepoint.stackexchange.com/questions/252355/rest-api-to-change-visibility-of-list

    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!


    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Xyza Xue_MSFT 25,546 Reputation points Microsoft Vendor
    2024-09-02T01:52:07.34+00:00

    Hi @Aamir Ansari ,

    Thank you for posting in this community.

    The Microsoft Graph API search/query endpoint does not support searching for hidden lists in SharePoint. Hidden lists are designed to be excluded from search results to maintain their hidden status. This is why your search queries are not returning any results for hidden lists.

    It is recommended to make the list visible if you need to search for its content using the Graph API.


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

    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.


  2. Aamir Ansari 20 Reputation points
    2024-09-02T05:57:08.4866667+00:00

    Closing this thread as I have found a way to update hidden property. We can update it using SharePoint REST api. Here's the Stack overflow answer.
    https://sharepoint.stackexchange.com/questions/252355/rest-api-to-change-visibility-of-list

    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.