How to Password Protect OneDrive Shared Files and Folders
Question details
The user wants to understand how password protection functions when sharing folders and individual files within those folders on OneDrive.

- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Creating sharing links for both a folder and a specific file located inside that same folder.
- Observed behavior
- A password applied to a folder-sharing link does not automatically apply to a separate sharing link generated for a file inside that protected folder.
Ensure you have an active Microsoft 365 subscription, as setting passwords on shared OneDrive links is a premium feature not available on free basic accounts.
Apply Password Protection Directly to the Individual File Link
Create a unique password for the specific file's sharing link to ensure it remains protected regardless of the parent folder's settings.
In OneDrive, each sharing link generates its own unique set of permissions. Creating a new link for a file means it will bypass the folder's link settings. Therefore, you must explicitly set a password for the file's individual link.
Log in to your OneDrive account, locate the specific file you want to share, and click the 'Share' icon next to it.
In the sharing dialog box, click on the gear icon (Settings) to open the link permissions menu.
Under 'More settings', select the 'Password' field and type in a strong password. Click 'Apply' to save the changes.
Copy the newly generated, password-protected link and send it to your recipient along with the password.

Share the Password-Protected Folder Link Instead
Direct recipients to access the file through the already secured folder link instead of creating a new link for the file.
Looking for a Simpler Way to Share and Edit Documents?
If managing OneDrive link permissions gets complicated, consider switching to WPS Office. It is a free, lightweight alternative that offers seamless compatibility with Microsoft formats, an intuitive interface, and built-in cloud sharing features to easily secure your documents.

Frequently Asked Questions
Why didn't the folder password protect the file link I just created?
In OneDrive, every sharing link has its own unique access settings. Generating a new sharing link for a specific file creates a separate access path that does not inherit the password or expiration settings from the parent folder's sharing link.
Do I need a Microsoft 365 subscription to password-protect OneDrive links?
Yes, adding passwords to shared links in OneDrive is a premium feature that requires an active Microsoft 365 Personal, Family, or Business subscription.
How can I verify that my password-protected link is working properly?
You can test the sharing link by opening an Incognito or Private Browsing window in your web browser, pasting the link, and verifying that it prompts you for a password before allowing access to the file or folder.




