Forum Discussion

kyletran's avatar
kyletran
Copper Contributor
Feb 28, 2022

SharePoint main page Sorry, you don't have access

Hi all, 

 

General question, on our main SharePoint ( https://sample.sharepoint.com/) page the viewers get "Sorry, you don't have access". It should redirect to https://sample.sharepoint.com/_layouts/15/sharepoint.aspx.  Thought about javascript to redirect but what page do I add the client script to. Also, found out that powershell be used to configure editing access to the main page. 

 

What is the best way to redirect?

 

Thank you, 

  • David_Petree's avatar
    David_Petree
    Mar 01, 2022
    What you should do is go create a brand new site. Design it and get it ready, how you want it, then use the first link above and do a site swap and make he new site the brand new root site
  • David_Petree's avatar
    David_Petree
    Brass Contributor
    The "viewers" get Sorry, you don't have access". ??

    Do you have access to it? It sounds like someone changed permissions on either the /sitepages folder or the /home.aspx page inside that folder.

    First, that URL should not redirect to the sharepoint.aspx page. If they are going to sample.sharepoint.com, then it should go to the root site, not the users SP landing page.

    The question to answer is, who changed the permissions on that folder or page?
    A Site collection admin should be able to go in there and check, or if you cannot, put /_layouts/15/settings.aspx page and get in that way to go fix the permission issue
      • David_Petree's avatar
        David_Petree
        Brass Contributor
        No, it would not be good to redirect it

        the /sharepoint.aspx page is a custom page that only the user that is signed in sees. It shows just the sites that the current user has access to and is set to follow. Think of it as a bookmark page for only the user that is logged in.

        Now that is out of the way, what are you trying to accomplish?

Resources