UpdateUserMFAAuthenticationSettings - 修改用户MFA独立配置
调用UpdateUserMFAAuthenticationSettings修改用户MFA独立配置。
接口说明
当您调用 UpdateMFAAuthenticationSettings 将全局 MFA 配置为Byuser,即依赖用户 MFA 独立配置时,您需要调用 UpdateUserMFAAuthenticationSettings 完成用户 MFA 的独立配置。
新创建用户的 MFA 独立配置默认为已启用Enabled状态。
本文将提供一个示例,为用户u-00q8wbq42wiltcrk****启用 MFA 校验。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cloudsso:UpdateUserMFAAuthenticationSettings |
update |
*User
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| UserId |
string |
是 |
用户 ID。 |
u-00q8wbq42wiltcrk**** |
| UserMFAAuthenticationSettings |
string |
是 |
用户 MFA 配置。取值:
|
Enabled |
| DirectoryId |
string |
是 |
目录 ID。 |
d-00fc2p61**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
5E6C6049-E9B0-5F6F-A104-6150E3B1F4D7 |
示例
正常返回示例
JSON格式
{
"RequestId": "5E6C6049-E9B0-5F6F-A104-6150E3B1F4D7"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。