Configure two-factor authentication

Enables or disables a user's two-factor authentication settings.

Note: The workflow for two-factor authentication is as follows:

  1. Send a verification code.
  2. Validate the verification code.
  3. Configure two-factor authentication.
Requires the Administrator [64] user role. See Roles.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

Specifies the unique identifier (UUID) or unique ID of the user.

Body Params
boolean
required

Specifies whether backup email notification for two-factor authentication is enabled (true) or disabled (false). If enabled, Tenable Vulnerability Management sends the two-factor verification code via email in addition to the SMS message.

boolean
required

Specifies whether SMS two-factor authentication is enabled (true) or disabled (false). If enabled, the system sends the verification code via SMS. This parameter must be true to enable two-factor authentication for the user.

string
required

Specifies the phone number to use for two-factor authentication. Must begin with the + character and the country code. Required when sms_enabled is true.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

404

Returned if Tenable Vulnerability Management cannot find the specified user.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/html