object user.resettotp(object/array users)
This method allows to reset user TOTP secrets.
This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(array)
IDs of users for which to reset TOTP secrets.
User sessions for the specified users will also be deleted (except for the user sending the request).
(object)
Returns an object containing the IDs of the users for which TOTP secrets have been reset, under the userids
property.
Reset TOTP secrets for two users.
Response:
CUser::resettotp() in ui/include/classes/api/services/CUser.php.