UpdateUser__用户管理接口_RAM API文档_访问控制-阿里云
接口描述
更新用户的基本信息
请求参数
Action
- 类型:String
- 必须:是
- 描述:操作接口名,系统规定参数,取值:UpdateUser
UserName
- 类型:String
- 必须:是
- 描述:指定用户名
- 格式:
^[a-zA-Z0-9.@-_]+$
NewUserName
- 类型:String
- 必须:否
- 描述:指定新用户名
- 格式:
^[a-zA-Z0-9.@-_]+$
NewDisplayName
- 类型:String
- 必须:否
- 描述:指定新显示名称
NewMobilePhone
- 类型:String
- 必须:否
- 描述:指定RAM用户新手机号
- 格式:国际区号-号码;例如:86-18600008888
NewEmail
- 类型:String
- 必须:否
- 描述:指定RAM用户的新邮箱
NewComments
- 类型:String
- 必须:否
- 描述:指定新备注, 最大长度128个字符。
返回参数
User
- 类型:User Type
- 描述:用户信息
需要的权限
Action
ram:UpdateUser
Resource
acs:ram:*:${AccountId}:user/${UserName}
错误信息
InvalidParameter.UserName.InvalidChars
- HTTP Status:400
- Error Message:The parameter - "UserName" contains invalid chars.
InvalidParameter.UserName.Length
- HTTP Status:400
- Error Message:The parameter - "UserName" beyond the length limit.
InvalidParameter.NewUserName.InvalidChars
- HTTP Status:400
- Error Message:The parameter - "NewUserName" contains invalid chars.
InvalidParameter.NewUserName.Length
- HTTP Status:400
- Error Message:The parameter - "NewUserName" beyond the length limit.
InvalidParameter.NewDisplayName.InvalidChars
- HTTP Status:400
- Error Message:The parameter - "NewDisplayName" contains invalid chars.
InvalidParameter.NewDisplayName.Length
- HTTP Status:400
- Error Message:The parameter - "NewDisplayName" beyond the length limit.
InvalidParameter.NewComments.Length
- HTTP Status:400
- Error Message:The parameter - "NewComments" beyond the length limit.
InvalidParameter.NewMobilePhone.Format
- HTTP Status:400
- Error Message:The format of the parameter - "NewMobilePhone" is incorrect.
InvalidParameter.NewEmail.Format
- HTTP Status:400
- Error Message:The format of the parameter - "NewEmail" is incorrect.
EntityNotExist.User
- HTTP Status:404
- Error Message:The user does not exist.
EntityAlreadyExists.User
- HTTP Status:409
- Error Message:The user does already EXIST.
操作示例
请求示例
https://ram.aliyuncs.com/?Action=UpdateUser
&UserName=zhangqiang
&NewUserName=xiaoqiang
&NewMobilePhone=86-18600008888
&NewEmail=zhangqiang@example.com
&<公共请求参数>
返回示例
XML
格式
<CreateUserResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
<User>
<UserId>1227489245380721</UserId>
<UserName>xiaoqiang</UserName>
<DisplayName>张强</DisplayName>
<MobilePhone>86-18600008888</MobilePhone>
<Email>zhangqiang@example.com</Email>
<Comments>这是一位云计算工程师</Comments>
<CreateDate>2015-01-23T12:33:18Z</CreateDate>
<UpdateDate>2015-02-11T03:15:21Z</UpdateDate>
</User>
</CreateUserResponse>
JSON
格式
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"User": {
"UserId": "1227489245380721",
"UserName": "xiaoqiang",
"DisplayName": "张强",
"MobilePhone": "86-18600008888",
"Email": "zhangqiang@example.com",
"Comments": "这是一位云计算工程师",
"CreateDate": "2015-01-23T12:33:18Z",
"UpdateDate": "2015-02-11T03:15:21Z"
}
}
最后更新:2016-11-23 17:16:05
上一篇:
GetUser__用户管理接口_RAM API文档_访问控制-阿里云
下一篇:
DeleteUser__用户管理接口_RAM API文档_访问控制-阿里云
查询热门Refer__资源监控接口_API 手册_CDN-阿里云
InstanceMonitorDataType__数据类型_API 参考_云服务器 ECS-阿里云
考试形式和试卷结构__弹性计算认证(ACP级)_如何获得专业技术认证?_专业技术认证-阿里云
解除策略与API绑定__流量控制相关接口_API_API 网关-阿里云
获取主题订阅列表__主题操作_快速入门_消息服务-阿里云
访问域名__访问与控制_开发人员指南_对象存储 OSS-阿里云
云服务器 ECS 本地SSD盘常见问题FAQ
在线算法开发手册__算法规范_开发者指南_推荐引擎-阿里云
聚合distinct子句__搜索子句介绍_API参考手册_开放搜索-阿里云
删除键__数据管理_DMS for Redis_用户指南(NoSQL)_数据管理-阿里云
相关内容
常见错误说明__附录_大数据计算服务-阿里云
发送短信接口__API使用手册_短信服务-阿里云
接口文档__Android_安全组件教程_移动安全-阿里云
运营商错误码(联通)__常见问题_短信服务-阿里云
设置短信模板__使用手册_短信服务-阿里云
OSS 权限问题及排查__常见错误及排除_最佳实践_对象存储 OSS-阿里云
消息通知__操作指南_批量计算-阿里云
设备端快速接入(MQTT)__快速开始_阿里云物联网套件-阿里云
查询API调用流量数据__API管理相关接口_API_API 网关-阿里云
使用STS访问__JavaScript-SDK_SDK 参考_对象存储 OSS-阿里云