In this post, we will discuss how we can resolve one SharePoint 2013 error “Sorry, you don’t have access to this page”. Or sometimes you also get a message like “Sorry, this site hasn’t been shared with you”. Just to let you know that this error we got while working in a Moss 2007 to SharePoint 2013. In one of the site collection we have a number of subsites, users (having more than contributing access) can able to visit subsites but when they try to edit the page they got the below error:
Sorry, you don’t have access to this page.
But for few users, they were able to edit.
As the name suggests, we need to first check the permission of the user. And also one more thing you can check if you have migrated from Moss 2007 to SharePoint 2013 is that if users are converted to claims or not. If not you can check out this article to convert users to claims.
When we put the id into the Site collection administrator they are able to edit the page.
After doing some analysis we saw that some unique permission was given to various document libraries like Style Library, Master Page, and Page Layouts document library. Removing unique permission from these two libraries help to solve the issue.
Remove Permission from Master pages and page layouts Gallery:
Navigate to the Site Collection Settings. Go to Settings -> Site Settings. Then in the Site Settings Page click on “Master pages and page layouts” under “Web Designer Galleries” section. If you do not see “Master pages and page layouts” option then you need to activate Publishing feature. You can check out this article to know how to activate the publishing feature using PowerShell in SharePoint 2013.
Once the document library opened, go to the Library Settings (from Ribbon), then click on “Permissions for this document library” under “Permissions and Management” section. There from the Ribbon click on “Delete unique permissions” under Permissions tab in Ribbon like below:
Make sure it should inherit from the parent site or if you required to give unique permission then give the permission here.
Also, you can go to the Site contents page and search for Style library and go tot he library settings and check the permission there and see if it has any unique permission.
Apart from that also you can check the Device Channels library permission. Go to Site Settings, then in the site settings page click on “Device Channels” under Look and Feel. This will open the Device Channels library, there you can go to the library settings and check the permission. If it has unique permission then you have to follow the above steps.
Hope this will be helpful.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: