Categories: Office 365SharePoint

Sharepoint Online – Sorry, you don’t have access to this page

Sorry, you don't have access to this page is well known message for any SharePoint Specialist. Recently when trying to cleanup our own SharePoint Online on Office 365 I've decided to change few little things. To my surprise while being Site Collection Administrator, being owner of multiple groups having full access permissions almost everywhere I was still getting that error.

Problem Description

This message “Sorry, you don't have access to this page”is also present during other operations. 

Similar problem but with different error “permission is denied” can be encountered while trying to move sites or subsites to other places within SharePoint Online. Most likely it will apply to other configuration places in SharePoint Online as well. Which is also weird for a Site Collection Administrator.

 

On another note (handy tip) if you would like to try and cleanup some stuff yourself following URL is worth to know:

https://sitename.sharepoint.com/_layouts/15/sitemanager.aspx

Solution - That didn't work, but may work for others

While I've found following solution proposed on other blogs

Connect-SPOService https://sitename-admin.sharepoint.com
Get-SPOSite -Identity "https://sitename.sharepoint.com" | fl *
Set-SPOSite -Identity "https://sitename.sharepoint.com" -DenyAddAndCustomizePages $false

In my case it didn't do anything. It simply stayed as Unknown.

Solution - That worked for me

What actually helped in my case was going to SharePoint Admin Center, going to Settings

https://sitename-admin.sharepoint.com/_layouts/15/online/TenantSettings.aspx

And changing Custom Script options:

Allow users to run custom script on personal sites

Allow users to run custom script on self-service created sites

After that change it may take up to 24 hours for things to start working. In my case it took just one hour. After that Sorry, you don't have access to this page was no more. So was permission denied.

This post was last modified on 26 października, 2016 12:22

Przemyslaw Klys

System Architect with over 14 years of experience in the IT field. Skilled, among others, in Active Directory, Microsoft Exchange and Office 365. Profoundly interested in PowerShell. Software geek.

Share
Published by
Przemyslaw Klys

Recent Posts

Active Directory Replication Summary to your Email or Microsoft Teams

Active Directory replication is a critical process that ensures the consistent and up-to-date state of…

2 tygodnie ago

Syncing Global Address List (GAL) to personal contacts and between Office 365 tenants with PowerShell

Hey there! Today, I wanted to introduce you to one of the small but excellent…

5 miesięcy ago

Active Directory Health Check using Microsoft Entra Connect Health Service

Active Directory (AD) is crucial in managing identities and resources within an organization. Ensuring its…

7 miesięcy ago

Seamless HTML Report Creation: Harness the Power of Markdown with PSWriteHTML PowerShell Module

In today's digital age, the ability to create compelling and informative HTML reports and documents…

8 miesięcy ago

How to Efficiently Remove Comments from Your PowerShell Script

As part of my daily development, I create lots of code that I subsequently comment…

8 miesięcy ago

Unlocking PowerShell Magic: Different Approach to Creating ‘Empty’ PSCustomObjects

Today I saw an article from Christian Ritter, "PowerShell: Creating an "empty" PSCustomObject" on X…

9 miesięcy ago