SOLVED

SharePoint main page Sorry, you don't have access

%3CLINGO-SUB%20id%3D%22lingo-sub-3223428%22%20slang%3D%22en-US%22%3ESharePoint%20main%20page%20Sorry%2C%20you%20don't%20have%20access%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3223428%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGeneral%20question%2C%20on%20our%20main%20SharePoint%20(%20%3CA%20href%3D%22https%3A%2F%2Fsample.sharepoint.com%2F_layouts%2F15%2Fsharepoint.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fsample.sharepoint.com%2F%3C%2FA%3E)%20page%20the%20viewers%20get%26nbsp%3B%22Sorry%2C%20you%20don't%20have%20access%22.%20It%20should%20redirect%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsample.sharepoint.com%2F_layouts%2F15%2Fsharepoint.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fsample.sharepoint.com%2F_layouts%2F15%2Fsharepoint.aspx%3C%2FA%3E.%26nbsp%3B%20Thought%20about%20javascript%20to%20redirect%20but%20what%20page%20do%20I%20add%20the%20client%20script%20to.%20Also%2C%20found%20out%20that%20powershell%20be%20used%20to%20configure%20editing%20access%20to%20the%20main%20page%2C%20would%20that%20be%20possible.%26nbsp%3B%20Thank%20you%2C%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3223428%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPermissions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3223504%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20main%20page%20Sorry%2C%20you%20don't%20have%20access%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3223504%22%20slang%3D%22en-US%22%3EThe%20%22viewers%22%20get%20Sorry%2C%20you%20don't%20have%20access%22.%20%3F%3F%3CBR%20%2F%3E%3CBR%20%2F%3EDo%20you%20have%20access%20to%20it%3F%20It%20sounds%20like%20someone%20changed%20permissions%20on%20either%20the%20%2Fsitepages%20folder%20or%20the%20%2Fhome.aspx%20page%20inside%20that%20folder.%3CBR%20%2F%3E%3CBR%20%2F%3EFirst%2C%20that%20URL%20should%20not%20redirect%20to%20the%20sharepoint.aspx%20page.%20If%20they%20are%20going%20to%20sample.sharepoint.com%2C%20then%20it%20should%20go%20to%20the%20root%20site%2C%20not%20the%20users%20SP%20landing%20page.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20question%20to%20answer%20is%2C%20who%20changed%20the%20permissions%20on%20that%20folder%20or%20page%3F%3CBR%20%2F%3EA%20Site%20collection%20admin%20should%20be%20able%20to%20go%20in%20there%20and%20check%2C%20or%20if%20you%20cannot%2C%20put%20%2F_layouts%2F15%2Fsettings.aspx%20page%20and%20get%20in%20that%20way%20to%20go%20fix%20the%20permission%20issue%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3223572%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20main%20page%20Sorry%2C%20you%20don't%20have%20access%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3223572%22%20slang%3D%22en-US%22%3EThank%20you%20David%2C%3CBR%20%2F%3E%3CBR%20%2F%3EWould%20it%20be%20best%20practice%20for%20us%20to%20redirect%20it%20to%20another%20page%20like%20%3CA%20href%3D%22https%3A%2F%2Fsample.sharepoint.com%2F_layouts%2F15%2Fsharepoint.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsample.sharepoint.com%2F_layouts%2F15%2Fsharepoint.aspx%3C%2FA%3E.%20Any%20security%20concerns%20if%20we%20just%20redirect%20the%20page%20or%20modify%20the%20main%20page%20with%20basic%20HTML%20and%20Javascript%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3223574%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20main%20page%20Sorry%2C%20you%20don't%20have%20access%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3223574%22%20slang%3D%22en-US%22%3ENo%2C%20it%20would%20not%20be%20good%20to%20redirect%20it%3CBR%20%2F%3E%3CBR%20%2F%3Ethe%20%2Fsharepoint.aspx%20page%20is%20a%20custom%20page%20that%20only%20the%20user%20that%20is%20signed%20in%20sees.%20It%20shows%20just%20the%20sites%20that%20the%20current%20user%20has%20access%20to%20and%20is%20set%20to%20follow.%20Think%20of%20it%20as%20a%20bookmark%20page%20for%20only%20the%20user%20that%20is%20logged%20in.%3CBR%20%2F%3E%3CBR%20%2F%3ENow%20that%20is%20out%20of%20the%20way%2C%20what%20are%20you%20trying%20to%20accomplish%3F%3C%2FLINGO-BODY%3E
Occasional Contributor

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, 

11 Replies
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
Thank 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?
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?
The old root,or x.sharepoint.com is more of a classic site. Do you still use that root site?

Do you have a new modern site you would want to make as your root site?

What are you trying to accomplish with the root site (x.sharepoint.com)
David,

Just get it so that the main SharePoint page does not display that ambiguous message of "Sorry, you don't have access" and a lot of white space. Some cosmetics to it, to enhance the main page look and feel. Ideally redirecting to Sharepoint.aspx so that they can see the tiles and latest SP sites, our SP is only for users who have logged in. Should the main page ( https://sample.sharepoint.com/) be anonymous access? Thanks again,
No site should be anonymous
If everyone in the company needs access to the root site, it's better to add the permission "Everyone but external users" to site permissions
David, do you have a particular site that I should refer to for SharePoint best security practice or a book?

Thanks again for your help,
Also, is there a security concern to redirect the main page ( https://sample.sharepoint.com/) to the SharePoint page, since our administrators prefer that page to be the main one?
best response confirmed by kyletran (Occasional Contributor)
Solution
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