This is a translation of the original English documentation page. Help us make it better.

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.

複数のユーザーのTOTPシークレットのリセット

2人のユーザーのTOTPシークレットをリセットします。

リクエスト :

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

レスポンス :

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

参照

ソース

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.