Add MFA device to user
- Print
- PDF
Add MFA device to user
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Add an MFA device to a user.
Request
- POST /users/{userId}/mfa-devices
Request path
Parameter | Required | Type | Restrictions | Description |
---|---|---|---|---|
userId | Y | String | User ID |
Request body
{
"encodedKey": "String",
"otpNo": "String"
}
Parameter | Required | Type | Description | Restrictions |
---|---|---|---|---|
encodedKey | Y | String | OTP secret key | |
otpNo | Y | String | OTP verification code | 6-digit number |
Response
Response body
{
"success" : "Boolean",
"message": "String"
}
Parameter | Type | Description | Restrictions |
---|---|---|---|
success | Boolean | Success status | |
message | String | Error 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 code | Error code | Error message |
---|---|---|
400 | 400 | Invalid request |
400 | 9113 | Two-factor authentication not applied |
400 | 9111 | Invalid OTP |
400 | 9110 | The MFA device is already registered |
Was this article helpful?