KSC Open API
Kaspersky Security Center API description
TotpGlobalSettings::Set2FaRequiredForAll ( boolean  bRequiredForAll)

Set global flag "2FA is required for all users" Second factor must be configured for current user to be able to call this method.

Parameters:
[in]bRequiredForAll- new flag value