Query execution is only allowed with IgnoreSafeQueryPropertiesTemplateUrl=true when the user has the UseRemoteAPIs permission

Error Message

I had setup a cloud Hybrid Search environment for one of my customers with SharePoint 2016 and SharePoint Online. It was working fine for past few weeks, until one fine day for almost all the users started getting the error message “Microsoft.SharePoint.Client.ServerException: Query execution is only allowed with IgnoreSafeQueryPropertiesTemplateUrl=true when the user has the UseRemoteAPIs permission” when searched from on-prem environment. Cloud Hybrid and Federated Setup Just to share some background about the environment setup, I had followed the recommended approach for setting up the cloud hybrid environment and all the content was correctly getting indexed in Office 365. The […]

Continue Reading

Creating Publishing Site at SharePoint Online Root

Root Site

This requirement keeps on appearing every now and then that customers want their SharePoint Online root site collection to be based on Publishing Site Template instead of the default team site template that we get with Office 365 tenant. What’s the Problem When a new Office 365 tenant is created, the SharePoint online site gets a root URL like https://<tenant name>.SharePoint.com, which forms the entry point of the SharePoint online sites. By default, this site is based on team site template but most customers would prefer this as a publishing site so that they can create and nicely arrange multiple […]

Continue Reading

HTTP to HTTPS Redirection for Web Application on Azure VMs

Azure

Sometime ago, I wrote an article about how to achieve http to https redirection in Azure hosted VMs. That solution is still applicable if your Azure environment was built using Classic model and is using Cloud Services. Things are a bit different in Azure Resource Manager model and that’s for good, as it has become even easier to achieve the same. Problem Statement Let’s take a relook at what we are trying to solve here. You have web application (let’s say SharePoint, but this solution is valid for any other web application as well) hosted in Azure VMs, build using […]

Continue Reading