Apache CloudStack 4.19.0.0 Root Admin API Reference

setupUserTwoFactorAuthentication

Setup the 2FA for the user.

Request parameters

Parameter NameDescriptionRequired
enableEnabled by default, provide false to disable 2FAfalse
providertwo factor authentication codefalse
useridoptional: the id of the user for which 2FA has to be disabledfalse

Response Tags

Response NameDescription
idthe user ID
accountidthe account ID of the user
secretcodesecret code that needs to be registered with authenticator
usernamethe user name