You are viewing documentation for the development version, it may be incomplete.
Join our translation project and help translate Zabbix documentation into your native language.

user.resettotp

Description

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.

Parameters

(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).

Return values

(object) Returns an object containing the IDs of the users for which TOTP secrets have been reset, under the userids property.

Examples

Resetting TOTP secrets for multiple users

Reset TOTP secrets for two users.

Request:

{
           "jsonrpc": "2.0",
           "method": "user.resettotp",
           "params": [
               "1",
               "5"
           ],
           "id": 1
       }
Copy
✔ Copied

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "userids": [
                   "1",
                   "5"
               ]
           },
           "id": 1
       }
Copy
✔ Copied

See also

Source

CUser::resettotp() in ui/include/classes/api/services/CUser.php.

To toggle search highlight, press Ctrl+Alt+H
Have an improvement suggestion for this page? Select the text that could be improved and press Ctrl+Enter to send it to the editors.