Forum Discussion
Gabriel Smoljar
Aug 17, 2026Brass Contributor
How can I test block download policies in SPO?
I have a Microsoft 365 E5 developer tenant. However, I am unable to activate the SharePoint Advanced Management trial from the SharePoint Admin Center. I need to verify my code in this configuration....
Kidd_Ip
Aug 18, 2026MVP
We may test SharePoint Online (SPO) block download policies using PowerShell with Set-SPOSite -BlockDownloadPolicy $true. This forces browser-only access, preventing downloads, sync, and app access which including CSOM calls like File.OpenBinaryStream(), which will fail under this policy. However, enabling this requires the SharePoint Advanced Management add-on, which is not available in E5 Developer tenants.
https://learn.microsoft.com/en-us/sharepoint/block-download-from-sites