MENU
      Add MFA device to user

        Add MFA device to user


        Article summary

        Add an MFA device to a user.

        Request

        • POST /users/{userId}/mfa-devices

        Request path

        ParameterRequiredTypeRestrictionsDescription
        userIdYStringUser ID

        Request body

        {
            "encodedKey": "String",
            "otpNo": "String"
        }
        JSON
        ParameterRequiredTypeDescriptionRestrictions
        encodedKeyYStringOTP secret key
        otpNoYStringOTP verification code6-digit number

        Response

        Response body

        {
          "success" : "Boolean",
          "message": "String"
        }
        JSON
        ParameterTypeDescriptionRestrictions
        successBooleanSuccess status
        messageStringError message upon failure

        Error

        Errors that may occur while using this action are listed below. For error response format, see Error Response.
        For more information about common errors, see NAVER Cloud Platform API.

        HTTP status codeError codeError message
        400400Invalid request
        4009113Two-factor authentication not applied
        4009111Invalid OTP
        4009110The MFA device is already registered

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.