UserContextData Element

SharePoint 2010

Last modified: April 16, 2010

Applies to: SharePoint Server 2010

In this article
Element Value
Child Elements
Parent Elements
Element Information

The keyword management search settings can be restricted to context. A context defines when a search setting should apply, typically targeting a specific group of users.

For more information, see Keyword Management (FAST Search Server 2010 for SharePoint).

For more information about the Query Web service, see Using the Query Web Service.

<UserContextData includeuserprofile={true|false}>

For information about the userContextString format, see Using User Contexts in Queries.

If a user with the responsibilities "developer" and "tester" submits a query for "office", the query request should include the following userContextString.


Schema name: Microsoft.Search.Query

Applies to: QueryServiceQuery() method (Microsoft.Search.Response.Document), QueryServiceQueryEx() method (Dataset)

Optional: Yes