How does SharePoint's Search API pass personalization data?

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

https://learn.microsoft.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.

Microsoft 365 and Office SharePoint Server For business
{count} votes

Accepted answer
  1. ZhengyuGuo 10,586 Reputation points Moderator
    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.