How to Share OneDrive for Business Files With Anyone Using a Link
Question details
The user needs to generate a public link for a OneDrive for Business document so that external visitors can access it on a website without logging into a Microsoft account.

- Product
- OneDrive for Business
- Device & OS
- not provided
- Scenario
- Publishing document links on a public website for seamless external access.
- Observed behavior
- Current sharing links are restricted to the account owner or organization members, prompting external users to sign in to a work or school account before they can view the files.
Verify that you have the appropriate file ownership permissions and ensure that your organization's IT policies allow for external file sharing.
Select the 'Anyone with the Link' Sharing Option
Change the default sharing permissions on your specific file to allow public access, removing the need for external users to sign in.
By default, OneDrive for Business often restricts sharing to people within your organization. To make a file public, you must explicitly change the link type during the sharing process.
Navigate to your OneDrive for Business folder online or in File Explorer, right-click the document you want to share, and select 'Share'.
Click on the current permission button (which usually defaults to 'People in your organization with the link can edit/view').
In the Link settings menu, select the option that says 'Anyone with the link'. You can also uncheck 'Allow editing' if you only want users to view the file.
Click 'Apply' to save the settings, then click 'Copy link' to generate the public URL. You can now paste this URL on your website.

Enable External Sharing in Microsoft 365 Admin Center
If the public sharing option is grayed out or missing entirely, a Microsoft 365 administrator must enable external sharing at the organizational and site levels.
Easily Share Documents Publicly with WPS Office
If your organization's Microsoft 365 admin policies restrict you from generating public links, consider using WPS Office for your standalone projects. WPS Office offers an intuitive cloud sharing feature that lets you instantly generate universally accessible links without wrestling with enterprise admin configurations.
- 1. Open your file: Launch WPS Office and open the document you wish to share publicly.
- 2. Access the share menu: Click the 'Share' button located in the top-right corner of the application window.
- 3. Set link permissions: Change the document permission settings from restricted to 'Anyone with the link can view'.
- 4. Copy and distribute: Click 'Copy Link' and paste the URL directly onto your website or share it with external users.

Frequently Asked Questions
Why is the 'Anyone with the link' option disabled or grayed out in my OneDrive?
This occurs when your organization's Microsoft 365 IT administrator has disabled external sharing. An admin must modify the tenant or site-level sharing policies in the SharePoint admin center to re-enable this feature for your account.
Does sharing an 'Anyone' link compromise the security of my other OneDrive files?
No. Generating an 'Anyone' link only provides public access to the specific file or folder you selected. The rest of your OneDrive files remain completely private and secure.
Can I prevent external users from editing the file I share via the public link?
Yes. When setting up the 'Anyone with the link' option, make sure to uncheck the 'Allow editing' box before applying the settings. This ensures the link is strictly view-only.
Do external users need to create a Microsoft account to view the file?
No. As long as the link is properly configured using the 'Anyone with the link' option, external users will not be prompted to sign in or create an account. They can view the document directly in their web browser.




