Are there any Graph APIs to access "search setting" in sharepoint online

Anonymous
2022-07-11T07:26:30.103+00:00

![219422-capture.png][1] [1]: /api/attachments/219422-capture.png?platform=QnA

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,013 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,211 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.
2,563 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tong Zhang_MSFT 9,111 Reputation points
    2022-07-14T09:38:41.777+00:00

    Hi anonymous user,

    According to my research and testing, I agree with BhanuKiranMSFT-5847's answer, we cannot access "Search settings" in SharePoint Online using Graph API.

    I suggest you can propose a feedback on this issue, Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding and support.


    If the answer is helpful, please click "Accept 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.


    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Bhanu Kiran 3,526 Reputation points
    2022-07-11T13:00:37.05+00:00

    Hi anonymous user ,

    You can not read or update "Search settings" of SharePoint using Graph API

    As per this beta documentation the site settings only provides basic information such as language and timezone with no modifying option.

    If you are looking to read or modify tenant-level settings on SharePoint or Onedrive as an Admin, you can use the following beta endpoints:

    GET https://graph.microsoft.com/beta/admin/sharepoint/settings  
    PATCH https://graph.microsoft.com/beta/admin/sharepoint/settings  
    

    Resource Articles: https://learn.microsoft.com/en-us/graph/api/tenantadmin-settings-get?view=graph-rest-beta&tabs=http
    https://learn.microsoft.com/en-us/graph/api/tenantadmin-settings-update?view=graph-rest-beta&tabs=http

    Hope this helps.

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