logo
search
Permission & Access Issues

How to Password-Protect Folders in OneDrive for Business or SharePoint

Maira MehtabMaira Mehtab Sep 21, 2026 868 views

Question details

Users need a way to secure specific folders with a password to restrict access when sharing files.

Product
OneDrive for Business / SharePoint
Device & OS
not provided
Scenario
Sharing organizational files or folders externally while maintaining strict access control.
Observed behavior
OneDrive for Business and SharePoint lack a direct 'Personal Vault' feature for folders, requiring users to rely on password-protected sharing links instead.
Before you start

Verify with your IT administrator that your organization's external sharing policies allow generating 'Anyone with the link' URLs, as this feature is required to set a password.

Solution 1Recommended

Set a Password on a Folder Sharing Link

Create a secure sharing link that prompts anyone attempting to access the folder for a custom password.

While business cloud environments do not offer the personal vault functionality found in consumer accounts, you can still protect sensitive directories. By modifying the sharing permissions to require a password, you can safely distribute links without exposing folder contents to unauthorized individuals.

1
Select the folder to share

Log in to your OneDrive for Business or SharePoint environment, locate the specific folder you wish to protect, right-click it (or click the three dots), and select 'Share'.

2
Change link settings

In the sharing dialog, click on the current link permission setting (which usually defaults to 'People in your organization with the link can edit') to open the link settings menu.

3
Enable 'Anyone with the link'

Select the 'Anyone with the link' option. If this option is grayed out, your organization does not permit anonymous external sharing.

4
Set the password

Check the box for 'Set password' in the settings menu, type a strong and secure password, and click 'Apply'.

5
Share the protected link

Copy the generated link or enter the recipient's email to send it. You will need to provide the password to the recipient securely through a separate communication channel.

Policy Restrictions: The availability of the 'Anyone with the link' and 'Set password' features is entirely dependent on your organization's IT governance and external sharing policies.
Free Microsoft Office alternative

Secure Your Files Directly with WPS Office

If your organization restricts OneDrive folder passwords, you can password-protect individual documents before uploading them to the cloud. WPS Office provides built-in, robust document encryption while serving as a lightweight and free alternative to Microsoft Office.

  1. 1. Open your document in WPS: Launch WPS Office and open the document, spreadsheet, or presentation you want to secure.
  2. 2. Access the encryption menu: Go to the 'Menu' tab in the upper-left corner, navigate to 'Document Encryption', and select 'Encryption'.
  3. 3. Set your file password: Enter your desired password in the 'Document Password' field, confirm it, click 'OK', and save the file before uploading it to OneDrive or SharePoint.
Fully compatible with Microsoft Office formats like .docx, .xlsx, and .pptxEasily apply strong encryption passwords directly to Word, Excel, and PDF filesLightweight installation with a highly familiar and easy-to-use interfaceFree to use, reducing software subscription overhead
QA img-9

Frequently Asked Questions

Why is the 'Anyone with the link' option grayed out in my OneDrive?

This happens when your IT administrator has disabled anonymous external sharing at the tenant level for security reasons. You must contact your IT department to request an exception or use alternative sharing methods.

Does OneDrive for Business have a Personal Vault?

No, the Personal Vault feature is exclusive to consumer (personal) OneDrive accounts. Business and enterprise environments rely on organizational compliance policies, permissions, and sharing controls instead.

Can I recover a forgotten password for a shared folder link?

No, passwords set on sharing links cannot be recovered or viewed after they are set. If you forget the password, you must delete the existing sharing link and create a new one with a new password.

Will the password protect subfolders and files inside the shared folder?

Yes, anyone who successfully enters the password to access the parent folder via the link will inherit access to all files and subfolders contained within it, based on the edit or view permissions you granted.