How to Fix OneDrive Asking for Username on Password-Protected Files
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.

- 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.
Verify that your Microsoft 365 or OneDrive account has the appropriate permissions to modify sharing settings, as organizational policies may restrict anonymous sharing features.
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.
Locate the file in your OneDrive online interface, click the three dots (More options) next to it, and select 'Share'.
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.
Choose the 'Anyone' or 'Anyone with the link' option. This removes the requirement for the recipient to log in with a username.
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.

Enable External Sharing in Microsoft 365 Admin Center
If you are an administrator, you must adjust the organization-wide sharing policies to allow password-only (anonymous) links.
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. Open your file in WPS Office: Launch WPS Office and open the document you wish to share.
- 2. Click on Share: Click the 'Share' button located in the top right corner of the application.
- 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.

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.




