# 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…

blog

24 Oct 2016 pl

![Sharepoint Online – Sorry, you don’t have access to this page](/wp-content/uploads/2016/05/SharePoint_2013.png)

[Zobacz obrazy (3)](#pf-content-image-1-0)

**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.

[!\[SharePoint Online page showing the access denied error message\](/wp-content/uploads/2016/10/img_580e4d5cae41b.png)](/wp-content/uploads/2016/10/img_580e4d5cae41b.png)

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**.

[!\[SharePoint Online site action showing a permission is denied error\](/wp-content/uploads/2016/10/img_580e6ddb61d5f.png)](/wp-content/uploads/2016/10/img_580e6ddb61d5f.png)

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](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

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

![SharePoint Online custom script setting with status shown as Unknown](/wp-content/uploads/2016/10/img_580e4d948d1cb.png)

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](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**

[!\[SharePoint Online admin center custom script options for sites\](/wp-content/uploads/2016/10/img_580e72f73f01b.png)](/wp-content/uploads/2016/10/img_580e72f73f01b.png)

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**.

## Powiązane projekty

Projekty powiązane z tagami, kategoriami i treścią tego wpisu.

[Wszystkie projekty](/projekty/)

Trwa dopasowywanie projektów...

[Powrót do bloga](/blog/)

## Powiązane wpisy

- [Check an API write after a PowerShell timeout](/blog/verify-uncertain-api-outcomes-powershell/)
- [Inspect and convert mixed Office archives with PSWriteOffice](/blog/inspect-and-convert-mixed-office-archives-pswriteoffice/)
- [Compose PDF reports and automate page workflows with PSWriteOffice](/blog/automate-pdf-reports-and-page-workflows-pswriteoffice/)

<!-- PowerForge markdown artifact sha256:5D42BF4C194AAA26ADE674A03329FD91D44E550C1870D114DC939EA3A544C57E -->
