Forum Discussion
kyletran
Feb 28, 2022Copper Contributor
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,
- 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_PetreeBrass ContributorThe "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- kyletranCopper ContributorThank you David,
Would it be best practice for us to redirect it to another page like https://sample.sharepoint.com/_layouts/15/sharepoint.aspx. Any security concerns if we just redirect the page or modify the main page with basic HTML and Javascript?- David_PetreeBrass ContributorNo, 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?