SOLVED

Prevent site visitors from accessing documents on a Teams SharePoint site

Copper Contributor

Hi! I have a need to setup Teams sites where visitors can access the main site page itself but not any documents.  One simple solution is to simply go to each top folder for each Channel in the Team (such as the General folder) and hit manage access and then remove Visitors form this. That works in most cases but we have some Teams where new channels are added all the time and it is hard to remember to do this since a new top folder is created every time a new Teams channel is added. So we are looking for a way to stop visitors from seeing documents but still be able to see the front page of the site even when new channels are added.

 

I tried to setup a new permission and a new group with this permission. The permissions I added where (anything less than this does not allow me to get to the site at all)

 

Under List Permissions:
• View Items - View items in lists and documents in document libraries.
Under Site Permissions:
• View Pages - View pages in a Web site.
• Open - Allows users to open a Web site, list, or folder in order to access items inside that container.

 

That seemed to work at least for existing channel top folders but the second I added a new channel, the new restricted visitor group was once again added with view permissions.

 

This is using SharePoint online, moderns sites where all sites are Teams sites.

 

Appreciate any tips on how to accomplish this.  

 

2 Replies
best response confirmed by Beau Cameron (MVP)
Solution
While I don't recommend to change the permissions of the Teams Document Library or the channels in the Team, what you could do it's to break inheritance in the Document Library and remove from there the Viewers group
1 best response

Accepted Solutions
best response confirmed by Beau Cameron (MVP)
Solution
While I don't recommend to change the permissions of the Teams Document Library or the channels in the Team, what you could do it's to break inheritance in the Document Library and remove from there the Viewers group

View solution in original post