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

Set or clear TOTP secret for user

Parameters:
binSidHashuser ID (ak_users.binSidHash)
oSecretSettingsnew TOTP secret settings (not used for clear, so may be any)
oNewSecretnew hex TOTP secret (empty for clear)