You set a file in OneDrive to private, expecting only you to see it. Yet someone else can open that file without your permission. This happens when the private file lives inside a parent folder that is shared with other people. OneDrive folder sharing permissions override individual file permissions by default. This article explains why this occurs, how to verify the actual sharing state of your files, and what steps you can take to keep truly private files hidden from shared folder viewers.
Key Takeaways: How OneDrive Parent Folder Sharing Overrides Private File Settings
- OneDrive sharing inheritance: Files inside a shared folder inherit the folder’s sharing permissions, making individual private settings ineffective unless you break inheritance.
- Check sharing via OneDrive website: Use the Information pane on onedrive.com to see all people who have access to a file, including those added through a parent folder.
- Move private files outside the shared folder: The only reliable way to keep a file private is to relocate it to a folder that is not shared with anyone.
Why a Private File Inside a Shared Folder Is Still Visible
OneDrive uses a permission model where folders act as containers. When you share a folder with specific people, every file and subfolder inside that folder automatically inherits the same sharing permissions. This inheritance is by design so that you do not have to manually grant access to each file. However, the inheritance also means that setting a single file to private does not remove access for people who already have access through the parent folder.
The OneDrive permission system works on a layered model. Folder-level permissions propagate to all child items. When you change a file’s sharing setting to private, you are only modifying the permission on that specific item. The parent folder’s sharing link remains active, and anyone who can view the folder can still open the file. OneDrive does not automatically block inherited access when you change a child item’s sharing state.
This behavior is not a bug. It is how OneDrive resolves conflicting permissions. The system gives higher priority to inherited permissions unless you explicitly stop inheritance. Stopping inheritance is not a standard feature in the OneDrive user interface for individual files. The only supported method to prevent inheritance is to move the file out of the shared folder.
Steps to Verify Who Can Access a File in a Shared Folder
Before you can fix the problem, you must confirm which users have access to a specific file. The OneDrive desktop client does not show inherited permissions. You must use the OneDrive website.
- Open OneDrive in your browser
Go to onedrive.com and sign in with your work or school account. - Navigate to the file
Browse to the folder that is shared and locate the file you set to private. Do not open the file. Select it by clicking the circle that appears on the file icon. - Open the Information pane
Click the Information icon in the top-right toolbar. It looks like a lowercase i inside a circle. - Review the list of people with access
In the Information pane, scroll down to the section labeled Shared with. You will see every person who has access to this file. If the file is inside a shared folder, you will see a note that says “Shared with people who have access to the parent folder.” - Identify the source of access
Click the link that says “Manage access to parent folder.” This opens the sharing settings for the parent folder. Here you can see the specific people or groups who received the folder sharing link.
How to Keep a File Private When It Must Stay in a Shared Folder
You have two options. Both require moving the file out of the shared folder. OneDrive does not offer a way to block inherited access while keeping the file in place.
Option 1: Move the File to a Non-Shared Folder
- Create a new private folder
In OneDrive, create a new folder at the root of your OneDrive or inside a folder that is not shared with anyone. Name it something clear like Private Files. - Move the file using drag and drop
Drag the private file from the shared folder into the new private folder. You can also right-click the file and select Move to, then choose the destination folder. - Verify the file is private
Select the moved file, open the Information pane, and confirm that the Shared with section shows Only you. If it shows any other users, click the Manage access link and remove any lingering permissions.
Option 2: Copy the File and Remove the Original
If you need to keep a copy of the file in the shared folder for reference, you can copy the file instead of moving it. Then delete the original from the shared folder.
- Copy the file to a private folder
Right-click the file in the shared folder and select Copy to. Choose a private folder as the destination. - Delete the original file from the shared folder
Go back to the shared folder, select the original file, and click Delete. Confirm the deletion. This removes the file from the shared folder and breaks the inherited permission. - Rename the copied file if needed
The copied file retains the same name. Rename it to avoid confusion.
Common Mistakes When Managing Permissions in Shared Folders
“I set the file to private in the sharing dialog, but people can still open it”
The OneDrive sharing dialog for a file shows a section labeled Who can access. Changing this to Specific people and leaving the field empty does not override inherited permissions. The dialog only controls direct sharing links for that file. People who already have access through the parent folder are not affected. You must move the file to break the inheritance.
“I removed the direct sharing link, but the file is still accessible”
Removing a direct sharing link from a file does not remove inherited access. The inherited permission from the parent folder remains active. The only way to remove inherited access is to move the file out of the shared folder.
“I changed the folder permissions to restrict access, but the file is still visible”
Modifying the parent folder’s permissions after the file was created does not retroactively remove access for people who already opened the file. The file may be cached in their browser or synced to their device. To fully revoke access, you must move the file and then delete the original copy from the shared folder.
Folder Sharing vs Individual File Sharing: Key Differences
| Item | Folder Sharing | Individual File Sharing |
|---|---|---|
| Permission scope | Applies to all files and subfolders inside the folder | Applies only to the selected file |
| Inheritance behavior | New files added later automatically inherit folder permissions | Does not affect other files in the same folder |
| Ability to override | Cannot be overridden by individual file settings | Can be overridden by parent folder permissions |
| Best use case | Collaborating on a set of related files with the same group | Sharing a single file with someone who does not need access to the rest |
If you need to share most files in a folder but keep one file private, do not put that file in the shared folder. Create a separate private folder and move the sensitive file there. This is the only reliable method to prevent inherited access.
You now understand how OneDrive parent folder sharing overrides private file settings and why moving the file is the only fix. To avoid this issue in the future, plan your folder structure before sharing. Keep sensitive files in a dedicated private folder that is never shared. For advanced control, consider using Microsoft 365 sensitivity labels to apply encryption and permissions that travel with the file, but note that labels also require the file to be outside a shared folder to work as expected.