How to prevent user from accessing SharePoint Site that created from Teams

%3CLINGO-SUB%20id%3D%22lingo-sub-2189379%22%20slang%3D%22en-US%22%3EHow%20to%20prevent%20user%20from%20accessing%20SharePoint%20Site%20that%20created%20from%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189379%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20requirement%20for%20the%20customer%20where%20user%20can%20share%20file%20in%20Standard%20Teams%20Channel%20but%20cannot%20access%20to%20SharePoint%20site.%26nbsp%3BI've%20tested%20for%20unassigned%20SharePoint%20Online%20license%20to%20user%2C%20but%20this%20user%20still%20able%20to%20access%20SharePoint%20Site.%20However%2C%20this%20user%20unable%20to%20share%20file%20to%201%3A1%20Chat%20and%20unable%20to%20access%20the%20OneDrive%20site.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20setting%20should%20we%20do%20to%20prevent%20user%20from%20accessing%20to%20the%20SharePoint%20site%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20Help%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2189379%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi, 

 

I have requirement for the customer where user can share file in Standard Teams Channel but cannot access to SharePoint site. I've tested for unassigned SharePoint Online license to user, but this user still able to access SharePoint Site. However, this user unable to share file to 1:1 Chat and unable to access the OneDrive site. 

 

Is there any setting should we do to prevent user from accessing to the SharePoint site? 

 

Any Help? 

2 Replies
Hello, you would need to configure the underlying SharePoint permissions for that site. As you've noticed users with no assigned SharePoint Online license don't have OneDrive for Business (not being able to share files in chats) but file sharing will continue to work in standard channels.

@ChristianBergstrom do you have any guide how to configured the SharePoint permission? 

Yes I've noticed users cannot share files in 1:1 Chats, However users can share, download and edit files in Teams Channels. It's correct? 

 

Do you have any recommendation to meet this customer's requirement?