How does SharePoint's Search API pass personalization data?

刘友缘 41 Reputation points
2020-08-19T08:35:16.097+00:00

https://video2.skills-academy.com/en-us/archive/blogs/nadeemis/sharepoint-2013-search-rest-api

personalizationdata

Gets or sets the unique identifier (GUID) for the current user who submitted the search query.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,333 questions
{count} votes

Accepted answer
  1. Jerryzy 10,571 Reputation points
    2020-08-20T08:28:15.767+00:00

    Hi @刘友缘 ,

    PersonalizationData in Search Rest API passed like this:

    GET http:// \<server\>/_api/search/query?querytext='sharepoint'&personalizationdata=' \<GUID\>'

    Personalizationdata

    The user guid can be got from this endpoint:

    http://siteurl/_api/web/SiteUserInfoList/Items/

    Please note, the user guid is different for different site collection, so please use the site url which is the same as the site url used in Search Rest API.


    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.