A Microsoft file hosting and synchronization service.
Hello,
If you're using OneDrive or SharePoint, permissions are inherited by default. When you share a parent folder, users who have access to that folder typically also have access to all files and subfolders within it (You can refer to the AI answer's suggestion).
To better understand your scenario, could you clarify a few details?
- Is the folder stored in OneDrive, SharePoint, or within a Microsoft Teams channel?
- Are you sharing the parent folder with individual users, Microsoft 365 groups, or security groups?
- When you say "restrict access," do you want users to be completely unable to see the subfolder, or just unable to open its contents?
- Is this for a small number of restricted subfolders, or do you need a scalable solution for many folders with different audiences?
- Are the users internal to your organization, external guests, or a mix of both?
In short, to restrict access to specific subfolders while keeping access to the parent folder, you need to break permission inheritance on the subfolder and assign unique permissions.
In SharePoint:
- Navigate to the subfolder or a file you want to restrict.
- Select the folder/subfolder/file and choose more actions (...) > Manage Access
- Click Advanced permissions settings > Stop inheriting permissions from the parent folder.
- Remove the users/groups that should not have access > Grant access only to the authorized users or groups.
- For more information, please refer to Break permission inheritance in SharePoint
Things to keep in mind:
- Users who lose permission to the restricted subfolder will still see and access the parent folder and any content they are permitted to access elsewhere.
- Creating many uniquely permissioned folders can make permission management more complex over time.
I hope the information is helpful. If you have any questions or if I have misunderstood anything, please feel free to reach out. Looking forward to your update.