Configuring SharePoint 2013 Search REST API for anonymous users (AUTOMATED)

By | 2013-06-16

Waldek has posted on this topic already, and has an extensive post available.
This post only contains a simple automated solution. The issue/goal here is:

“One of the great capabilities of SharePoint 2013 is the Search REST API. Unfortunately it’s disabled for anonymous users by default. Find out how to enable SharePoint 2013 Search REST API for anonymous users.”

I have created a [queryparametertemplate.xml] file. In it, I have put in tokens for the GUIDs we have to insert..

Next we use PowerShell to get the needed GUIDs and insert them into the [queryparametertemplate.xml] file:

Now we can upload the file to the Proper Document Library:

I have made the Template XML File and PowerShell scripts available for download here: make-search-anon-api

4 thoughts on “Configuring SharePoint 2013 Search REST API for anonymous users (AUTOMATED)

  1. Wicus van den Berg

    Hi there. Good blog. Just a point to note here for users on Office 365. I searched the web high and low to find an answer. How do I get the FarmId for Office 365??? The answer is simple.. You don’t.. Just leave the FarmId section blank in your template. It works, believe me, I know.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.