Unbinds a multi-factor authentication (MFA) device from a user.
Usage notes
This topic provides an example on how to unbind the MFA device mfa-00ujhet8pycljj7j****
from the user u-00q8wbq42wiltcrk****
.
Limits
You can call this operation up to 100 times per second per account. This operation is globally limited to 100 times per second across all accounts. If the number of the calls per second exceeds a limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limits when you call this operation.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteMFADeviceForUser |
The operation that you want to perform. Set the value to DeleteMFADeviceForUser. |
UserId | String | Yes | u-00q8wbq42wiltcrk**** |
The ID of the user. |
MFADeviceId | String | Yes | mfa-00ujhet8pycljj7j**** |
The ID of the MFA device. You can call the ListMFADevicesForUser operation to query the IDs of MFA devices. |
DirectoryId | String | Yes | d-00fc2p61**** |
The ID of the directory. |
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 8B9982ED-FD0D-5622-8EA0-7B768685DCE7 |
The ID of the request. |
Examples
Sample requests
https://[Endpoint]/?Action=DeleteMFADeviceForUser
&UserId=u-00q8wbq42wiltcrk****
&MFADeviceId=mfa-00ujhet8pycljj7j****
&DirectoryId=d-00fc2p61****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteMFADeviceForUserResponse>
<RequestId>8B9982ED-FD0D-5622-8EA0-7B768685DCE7</RequestId>
</DeleteMFADeviceForUserResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "8B9982ED-FD0D-5622-8EA0-7B768685DCE7"
}
Error codes
For a list of error codes, visit the API Error Center.