Controlling data sharing, visibility, and access permissions within Microsoft Teams
Not fully in the way described.
In SharePoint and OneDrive, permissions are inherited by default. If a parent folder is shared, users who have access to that folder typically also have access to its files and subfolders. To restrict access to a specific subfolder, the supported approach is to break permission inheritance on that subfolder and assign unique permissions.
For a folder behind Teams files:
- Open the folder in SharePoint from Teams.
- Select the specific subfolder.
- Open Manage access.
- Go to Advanced settings.
- Stop inheriting permissions from the parent folder.
- Remove users or groups that should not have access.
- Grant access only to the external users who should see that folder.
Important limits:
- Users who lose permission to the restricted subfolder can still access the parent folder and any other content they are permitted to access.
- SharePoint does not provide a permission level that completely hides other subfolders from view in the structure. Access to content can be restricted, but other folders may still appear.
- If People in your organization is selected in sharing settings, sharing outside the organization will not work.
- For external sharing by link, use Link settings and choose People you choose or Anyone. People you choose is the more controlled option because only the specified people can use the link.
If the goal is that external users only work with one folder and not browse broader team content, the safer design is to place that content in a separate location with unique permissions and share only that location.
- Sharing files, folders, and list items | Microsoft Support
- Manage document privacy | Microsoft Support
- Share Folder Restriction of Access - Microsoft Q&A Once a folder is created and shared, all files and subfolders within it can be accessed via link.
- How to grant access to user to access the certain path to a sub folder without seeing orther subfolders? - Microsoft Q&A
- Manage sharing with external users in Microsoft 365 Small Business | Microsoft Support