KSC Open API
Kaspersky Security Center API description
MfaCacheInner::SetUserTotpSecret ( long  llTrusteeId,
TotpSecretSettings  oSecretSettings,
pswd_string  oNewSecret 
)

Set or clear TOTP secret for user

Parameters:
llTrusteeIduser ID (spl_user.llTrusteeId)
oSecretSettingsnew TOTP secret settings (not used for clear, so may be any)
oNewSecretnew hex TOTP secret (empty for clear)