We have a requirement to integrate an antivirus solution with the Sharepoint server programmatically.

Requirement: When a user adds/updates a document perform a scan using SDK of the antivirus and based on the result allow/block the document. So we are expecting to receive a callback when a user uploads/downloads any documents. This does not apply to the Sharepoint online. We have to achieve this programmatically(C# is the preferred language).

We are struggling to find enough documentation regarding the same.

The documentation we can find so far is mentioned below but it doesn't seem to have enough information to get started and also we are not sure if it is still relevant, https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/aa979485(v=office.14)

We would like to know possible approaches/documentation related to this.

1 Answer 1


If you are in SharePoint online,please refer to https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/virus-detection-in-spo?view=o365-worldwide (Please note When a file is found to contain a virus, it's flagged so that it can't be downloaded again,however there is no detection during the file upload process)。

If you are in SharePoint On-Premise, please refer to https://www.c-sharpcorner.com/article/sharepoint-2013-or-2016-configure-antivirus-settings-and-features/

More infromation:



  • Thanks for your reply. I have made a mistake in specifying the requirements. I have updated the question. We need to do this programmatically as we will be given SDK of the antivirus and we need to invoke appropriate functions of the SDK on callbacks. Let me know if you need more clarification. Commented May 17, 2020 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.