Permission & Access Issues

How to Fix OneDrive Asking for Username on Password-Protected Files

Amos GikundaAmos Gikunda Oct 15, 2026 869 views

Question details

Recipients are being asked to enter a username alongside a password when attempting to open a password-protected file shared via a OneDrive link.

How to Fix OneDrive Asking for Username on Password-Protected Files
Product
OneDrive
Device & OS
not provided
Scenario
Sharing a file via a secure OneDrive link with the expectation that recipients will only need the assigned password to access the document.
Observed behavior
The sharing link prompts users for both a username (or Microsoft account login) and a password, preventing simple password-only access.
Before you start

Verify that your Microsoft 365 or OneDrive account has the appropriate permissions to modify sharing settings, as organizational policies may restrict anonymous sharing features.

Solution 1Recommended

Change Sharing Link Settings to 'Anyone'

Adjust the specific file's sharing configuration to allow anonymous access so recipients only need the custom password you set.

By default, OneDrive may create links restricted to 'Specific people' or 'People in your organization'. These link types require the recipient to authenticate their identity with a username or email before they can even enter the file password.

1
Open sharing settings

Locate the file in your OneDrive online interface, click the three dots (More options) next to it, and select 'Share'.

2
Modify link permissions

Click on the gear icon or the current link settings description (e.g., 'People in your organization can edit') to open the Link settings menu.

3
Select 'Anyone'

Choose the 'Anyone' or 'Anyone with the link' option. This removes the requirement for the recipient to log in with a username.

4
Set the password

Under 'More settings', enter your desired password in the 'Set password' field, click 'Apply', and then copy the new link to send to your recipients.

Change Sharing Link Settings to 'Anyone'
Option Greyed Out: If the 'Anyone' option is greyed out, your organization's IT administrator has disabled anonymous external sharing.
Free Microsoft Office alternative

Share Password-Protected Documents Easily with WPS Office

If OneDrive's sharing settings are too restrictive or managed by organizational policies you cannot change, consider using WPS Office. It provides a lightweight, easy-to-use alternative to Microsoft Office, complete with straightforward cloud storage and simple password-protected sharing options.

  1. 1. Open your file in WPS Office: Launch WPS Office and open the document you wish to share.
  2. 2. Click on Share: Click the 'Share' button located in the top right corner of the application.
  3. 3. Set up password protection: Select 'Create Link', ensure permissions are set for anyone to view, toggle on the password requirement, and copy the link to share securely.
Easily generate password-only sharing links without complex tenant configurations.Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Free, lightweight office suite featuring an intuitive, tabbed user interface.Seamless cloud integration across Windows, Mac, Linux, iOS, and Android.
microsoft office alternative - wps office

Frequently Asked Questions

Why does OneDrive ask for an email or username when opening a shared link?

This usually happens because the link was created with permissions set to 'Specific people' or 'People in your organization'. These security settings require the recipient to verify their identity by logging into a Microsoft account before they can access the file.

Can I share a OneDrive file without requiring recipients to sign in?

Yes, you can share files without requiring a login by selecting the 'Anyone with the link' option when generating the shareable link. You can then add a password to this specific link for security.

What should I do if the 'Anyone with the link' option is greyed out or missing?

If this option is unavailable, it means your organization's IT department has disabled anonymous external sharing for security reasons. You will need to contact your IT administrator to request that this feature be enabled in the Microsoft 365 Admin Center.

Does enabling Multi-Factor Authentication (MFA) affect how shared links work?

Yes, if your organization enforces strict Conditional Access or MFA policies, external users may be prompted to authenticate their session even if they have the file password, depending on how the Azure AD external collaboration settings are configured.