KSC Open API
Kaspersky Security Center API description
TotpUserSettings::AddUserToTotpRequrementExceptions ( long  llTrusteeId,
boolean  bInExceptions 
)

Add/remove user to/from exceptions list of "2FA is required for all users" requirement.

Parameters:
[in]llTrusteeIdTrustee id to change settings
[in]bInExceptionsTrue - add user to exceptions, false - exclude from exceptions