SharePoint 2013 Search REST API Not asking to authenticate RRS feed

  • Question

  • Hi,

    I have created an Enterprise Search Center site in my SP 2013 farm to expose the Search REST API to other client applications.

    Whenever I am trying to browse the API from browser (Ex: http://server/_api/search/query?querytext='xyz') it is responding me with below xml.

    <m:error xmlns:m="">

    <m:code>-2147024891, System.UnauthorizedAccessException</m:code>

    <m:message xml:lang="en-US">

    Access denied. You do not have permission to perform this action or access this resource.



    Ideally it should ask me to provide credentials first with a pop-up.

    However when I browse the root site first (Ex: http://server/) and authenticate by providing the credentials and then browse the API url, I get the Search result response xml with proper search results.

    My IIS authentication setting values are as below

    Anonymous Authentication: Enabled

    ASP.Net Impersonation: Enabled

    Basic Authentication: Disabled

    Digest Authentication: Disabled

    Forms Authentication: Enabled

    Windows Authentication: Enabled


    Thanks, Bivsworld

    Monday, December 8, 2014 8:38 PM