Fix SharePoint External Sharing Blocked Error OSE304
Question details
SharePoint users are unable to share files or folders externally and are receiving the OSE304 error code.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Users are attempting to share documents or folders with external guests after recent group permissions were modified.
- Observed behavior
- An error message stating "Your organization's policies don't allow you to share with these users" (Error OSE304) appears, despite external sharing being enabled at the site and tenant levels.
Ensure you have SharePoint Administrator privileges or Global Administrator rights to run PowerShell commands and adjust tenant-level sharing policies.
Check Site Sharing Status Using PowerShell
Use SharePoint Online Management Shell to verify if the specific site's sharing capability is correctly configured for external guests.
Sometimes the SharePoint admin center GUI does not accurately reflect the background state of a site's sharing capability. Running a PowerShell script allows you to directly query the tenant and confirm that the site is set up for external sharing without conflicting policies.
Launch the SharePoint Online Management Shell with administrator privileges on your computer.
Run the command `$AdminSiteURL = "https://yourdomain-admin.sharepoint.com"` followed by `Connect-SPOService -Url $AdminSiteURL -Credential (Get-Credential)` to authenticate.
Execute the command `Get-SPOSite | Select-Object Url, SharingCapability` to list all sites and view their current sharing statuses.
Ensure the affected site's SharingCapability is explicitly set to `ExternalUserAndGuestSharing`. If it is not, you will need to update the sharing setting using the `Set-SPOSite` command.

Review Recent Group Permission Changes
Since the error occurred after a new group was added, reviewing those specific permission changes can resolve conflicting sharing policies.
Looking for a hassle-free document collaboration tool? Try WPS Office
If you frequently encounter permission blocks and complex sharing configurations in Microsoft SharePoint, consider WPS Office. It provides a lightweight, easy-to-use alternative for seamless document creation, sharing, and team collaboration without the steep administrative overhead.
- 1. Download WPS Office: Visit the official WPS website to download the free office suite for your operating system.
- 2. Install and Launch: Follow the simple on-screen instructions to install the software, then log in to your account.
- 3. Share Documents Easily: Save your files to WPS Cloud and click the Share button to instantly generate sharing links without navigating complex permission tiers.

Frequently Asked Questions
Why do I get Error OSE304 even when external sharing is turned on?
Error OSE304 often occurs when there is a mismatch between tenant-level sharing settings and specific site-level or group-level permissions. A recently added SharePoint group might have restrictive policies that override the global external sharing settings.
Can I fix SharePoint Error OSE304 without using PowerShell?
Yes, you can manually check the SharePoint Admin Center. Go to Active Sites, select the affected site, click on the Policies tab, and verify that the External sharing settings are configured to allow 'Anyone' or 'New and existing guests'.
Does changing SharePoint group permissions immediately affect sharing links?
It can sometimes take a few minutes for permission changes to propagate across SharePoint Online. If you still encounter the sharing error immediately after fixing permissions, wait 15 to 30 minutes, refresh the page, and try again.




