Prevent file download in SharePoint

Microsoft SharePoint Logo

Microsoft SharePoint LogoMicrosoft SharePoint Logo Sometimes in SharePoint there will be a scenario where users shouldn’t download documents, but yet should be able to view the documents. In many of the sites it’s mentioned that this is not possible. But in reality as of March 2020, this is possible.

Generally the permission level “View Only: Can view pages, list items, and documents. Document types with server-side file handlers can be viewed in the browser but not downloaded.” is not available by default. But the site collection feature “SharePoint Server Enterprise Site Collection features” when activated will enable this permissions level.

Note that this will work only for Microsoft Office files like Word, Excel, PowerPoint etc. Still users will be able to download other file type. The reason is SharePoint uses handler for viewing and editing Microsoft Office files which can prevent download.

Perform the following steps to enable the permission level

  1. Launch “Site collection features” under “Site Settings”.
  2. Activate “SharePoint Server Enterprise Site Collection features”.
  3. Go to the library’s settings and launch “Permissions for this document library”.
  4. Enable unique permissions.
  5. Then select the specific “SharePoint group” and click “Edit User Permissions”.
  6. Now you should be able to see the permission level ” View Only: Can view pages, list items, and documents. Document types with server-side file handlers can be viewed in the browser but not downloaded.”
  7. Check that permission and uncheck all other permissions.
  8. Now all the users within that group will only be able to view the document in web-viewer and will not be able to download.

Before applying permission

The “Download” menu is visible. Clicking “Open” will open the file in web viewer.

After applying permissions

The “Download” menu is not visible. Clicking “Open” will open the file in web viewer.