How to Fix Teams Shared Link Blocked by Administrator Policy
Question details
Users are unable to open a file shared via Microsoft Teams in a web browser due to an administrator policy error, even though the file successfully opens in the desktop application.

- Product
- Microsoft Teams
- Device & OS
- not provided
- Scenario
- Opening a shared file link from a Microsoft Teams chat or channel using a web browser.
- Observed behavior
- The browser displays an error stating that access through the link was removed by administrator policy.
Ensure you have the necessary file owner permissions in the connected SharePoint or OneDrive folder, and verify if your organization has recently updated its external sharing expiration policies.
Manage Access and Recreate the Sharing Link
Check the current link status in SharePoint and generate a new sharing link if the previous one was removed or expired.
In many cases, this error appears simply because the file owner manually removed the specific sharing link, or it expired. Generating a fresh link often resolves the access block.
Navigate to the SharePoint site or OneDrive location associated with the Teams channel where the file is stored.
Right-click the affected file and select 'Manage Access' from the context menu to view current permissions.
Check the 'Links Giving Access' section to see if the 'Anyone with the link' or specific shared link still exists. If the link is broken, click the trash can icon next to it to remove it completely.
Click the 'Share' button at the top, select your desired permission level, and click 'Copy link' to generate a new URL to share in Teams.

Contact IT Administrator for Policy Review
If recreating the link doesn't work, organization-wide Microsoft 365 policies or conditional access rules might be blocking web-based access.
Experience Hassle-Free File Sharing with WPS Office
Tired of complex administrator policies and unexpected link expiration issues? Try WPS Office, a free, lightweight, and highly compatible alternative to Microsoft Office. It offers seamless file sharing, real-time collaboration, and easy cloud storage without the confusing permission hurdles.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install the Software: Run the installer and follow the simple on-screen instructions to complete the setup in minutes.
- 3. Share Files Easily: Open your document in WPS Office and click the 'Share' button in the top right corner to generate an easily accessible link.

Frequently Asked Questions
Why does the Teams shared link work in the desktop app but fail in a web browser?
Browser access relies on web-based sharing links which are subject to different SharePoint expiration policies and conditional access rules. The desktop application often bypasses these link-specific policies by using direct file path authentication if you are already synced and logged in.
Can a file owner accidentally trigger the administrator policy error?
Yes. If the file owner manually deletes the sharing link access in the SharePoint 'Manage Access' panel, users clicking the old link in Teams will receive an access error, which is sometimes generically labeled as a policy restriction by the browser.
How long do Teams sharing links last before expiring?
This depends entirely on your organization's Microsoft 365 settings. IT administrators can enforce a default expiration period (such as 30 or 90 days) for all anonymous or external sharing links, after which the link will automatically stop working and display a policy error.




