I'm trying to execute the following query for anonymous users. But, its not getting any results. When login, its working fine. Any idea about this ?

/_api/search/query?QueryText='Category: "About School"'&QueryTemplatePropertiesUrl='spfile://webroot/queryparametertemplate.xml'

PS: I have added the QueryText and QueryTemplatePropertiesUrl in the queryparametertemplate.xml file.

  • Any idea for this issue ?
    – Anish V
    Commented Jun 27, 2014 at 13:54
  • Where can I find the queryparametertemplate.xml file? Commented Oct 19, 2015 at 19:31

1 Answer 1


Things you need to check in the queryparametertemplate.xml file are whether Farm ID, Site ID & Web ID are configured correctly

  1. Farm ID: is the GUID of the farm.
  2. Site ID: is the GUID of the site collection where you are you are trying to retrieve your data from.
  3. Web ID: The GUID of the root web of the site collection.

You can check this Sample file to verify your settings.

Apart from above checkpoints, you need to enable anonymous access on the catalog you are publishing. That you can do in the Catalog settings page of the list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.