Fix OneDrive Shared Links Asking for Login on Mobile Phones
Question details
Users are being prompted to log in when attempting to open OneDrive shared links via QR codes on certain mobile phones, despite permissions being configured for anonymous access.

- Product
- OneDrive
- Device & OS
- Mobile (iOS/Android)
- Scenario
- Accessing a shared file via a QR code or web link on a mobile device without a Microsoft account.
- Observed behavior
- The mobile browser or app interrupts the viewing process and requests Microsoft account login credentials instead of opening the file directly.
Verify that your OneDrive account is active and that your organization's IT policies allow anonymous external sharing, as enterprise settings can sometimes override individual link permissions.
Verify Sharing Permissions and Test Alternative Browsers
Ensure the sharing link is explicitly configured for anonymous access and test if the issue is isolated to a specific mobile browser.
Mobile browsers handle redirects and cached data differently, which can sometimes cause a public link to incorrectly trigger a login prompt. Regenerating the link and testing in a private browsing environment often resolves this.
Open OneDrive, select the file you want to share, and click the 'Share' button. Click on the gear icon or permission settings and ensure 'Anyone with the link' is selected.
Delete the old sharing link and generate a brand new one. If you are using a QR code, create a fresh QR code using the newly generated URL.
On the affected mobile phone, copy the link and paste it into an Incognito (Chrome) or Private (Safari) tab to bypass any cached account login loops.

Contact Microsoft OneDrive Support
If the issue persists across multiple devices and browsers, the problem may lie with how OneDrive's servers are routing the specific link on mobile platforms.
Share Files Seamlessly with WPS Office
If OneDrive links continue to cause frustrating login loops for your mobile recipients, consider switching to WPS Office. WPS provides a highly compatible, lightweight, and completely free alternative to Microsoft Office, complete with its own robust cloud storage. You can easily generate sharing links that open instantly on any mobile device without forcing recipients to log in.
- 1. Download WPS Office: Install the free WPS Office suite on your desktop or mobile device.
- 2. Upload to WPS Cloud: Open your Microsoft Office documents in WPS and save them to the built-in WPS Cloud.
- 3. Create a sharing link: Click 'Share', select 'Anyone with the link can view', and send the URL to your recipients hassle-free.

Frequently Asked Questions
Why does my 'Anyone with the link' OneDrive file still require a login?
This usually happens due to cached browser data on the mobile device, restrictive enterprise sharing policies set by an administrator, or a glitch in how the OneDrive mobile app intercepts the link. Generating a new link or using a private browsing tab often bypasses this.
Does the recipient need a Microsoft account to view a shared OneDrive file?
No. If the sharing permission is properly set to 'Anyone with the link', the recipient does not need a Microsoft account to view or download the file.
How do I create a QR code for a shared cloud document?
First, configure your document to be accessible by anyone with the link. Copy that specific URL, paste it into any free online QR code generator, and download the resulting image to share with others.
Can I prevent people from downloading my shared OneDrive file?
Yes. When setting up the 'Anyone with the link' permission, you can click on the link settings and toggle on the 'Block download' option before copying the link.




