How to get the option SPOTenant -DisallowInfectedFileDownload in Node.js?

Aleks Dev 0 Reputation points
2024-04-19T14:35:50.7033333+00:00

Hi everyone!

I need to get an option DisallowInfectedFileDownload in Node.js application. I'd like to do it via Graph API. But I found only one way to get this parameter - via Powershell.

I can get value:

Get-SPOTenant | Select-Object DisallowInfectedFileDownload

and I change the value:

Set-SPOTenant -DisallowInfectedFileDownload $true

May I receive this parameter with Graph API?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,865 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,883 questions
{count} votes