SharePoint Online: Publishing Portal template not allowed at the Root URL

So, you’ve provisioned a new SharePoint online tenant, and would like to replace the Team Site at the root URL with a site using the ‘Publishing Portal’ template. Seems reasonable, right?

Create Site Collection - Select Template
Select the Publishing Portal template when creating a new Site Collection

I came across an Office 365 Community post where an alternative approach was suggested that involved creating the Site Collection and choosing the < Select template later.. > option. This actually does work, creating the root web using the Publishing Portal template.

The resulting site still has issues however. I was still unable to configure managed navigation, or restrict the page layouts. Trying to perform these actions simply results in the message “Sorry, you don’t have access to this page”. Another Office 365 Community post talks about a solution to this problem, but the change in settings requires 24 hours to take effect. I’ll try this and see how it goes.

A colleague and I had the same idea, and set to work re-creating the Site Collection at the root URL. The first thing that I noticed was that you can’t create a Site Collection at the root URL using PowerShell. Some quick Googling with Bing revealed that this is a known limitation at the present point in time.

Create a Site Collection at the root URL in SharePoint Online via PowerShell

We went back to the UI to create our Site Collection at the root URL, but even after selecting the ‘Publishing Portal’ template, the site was being created with the ‘Enterprise Wiki’ template instead! We re-created it three times, with the same result each time. Here you can see the template used with a quick call to Get-SPOSite in PowerShell, piping the site to Format-List to show its properties:

Get-SPOSite showing the template used for the Site Collection

By this time, we stopped doubting our ability to select the right template in the UI. We knew that SharePoint Online was doing something funny in the background. That’s when I came across the following KB article: A newly created SharePoint Online site uses the Enterprise Wiki template instead of the Publishing Portal template. Unfortunately, it doesn’t explain why this limitation exists, only that it does exist. With our Enterprise Wiki Site Collection, we thought we could just turn on the missing publishing features and continue to use the site. Unfortunately we came across a few other limitations, such as the inability to specify which Page Layouts can be used under Page Layout and Site Template Settings. Attempting to add a Page Layout or allow any page layout to be used results in the ‘Sorry, you don’t have access to this page’ message. In the end, we decided to use a redirect page to redirect to an actual Publishing Portal in a different Site Collection, under the /sites/ managed path.


4 thoughts on “SharePoint Online: Publishing Portal template not allowed at the Root URL

  1. valleyma February 13, 2015 / 22:55

    What do you mean by “restrict the page layouts” when using the method of choosing template later? I want to create a custom Page Layout so does it work for me to create a Publishing Portal as the root site collection? I don’t need managed navigation.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s