185
阿里云
AddUserToGroup__组管理接口_RAM API文档_访问控制-阿里云
接口描述
将子用户添加到指定的用户组
请求参数
Action
- 类型:String
- 必须:是
- 描述:操作名称,取值:
AddUserToGroup
UserName
- 类型:String
- 必须:是
- 描述:用户名称
GroupName
- 类型:String
- 必须:是
- 描述:组名称
返回参数
只有公共返回参数,详见公共返回参数
需要的权限
Action
ram:AddUserToGroup
Resource
acs:ram:*:${AccountId}:user/${UserName}
acs:ram:*:${AccountId}:group/${GroupName}
错误信息
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.GroupName.InvalidChars
- HTTP Status:400
- Error Message:The parameter - "GroupName" contains invalid chars.
InvalidParameter.GroupName.Length
- HTTP Status:400
- Error Message:The parameter - "GroupName" beyond the length limit.
EntityNotExist.User
- HTTP Status:404
- Error Message:The user does not exist.
EntityNotExist.Group
- HTTP Status:404
- Error Message:The group does not exist.
EntityAlreadyExists.User.Group
- HTTP Status:409
- Error Message:The user has already joined the group.
LimitExceeded.User.Group
- HTTP Status:409
- Error Message:The count of groups the target user joined beyond the current limits.
操作示例
请求示例
https://ram.aliyuncs.com/?Action=AddUserToGroup
&UserName=zhangqiang
&GroupName=Dev-Team
&<公共请求参数>
返回示例
XML
格式
<AddUserToGroupResponse>
<RequestId>1B968853-B423-63A6-FE1F-45E81BC2AD61</RequestId>
</AddUserToGroupResponse>
JSON
格式
{
"RequestId": "1B968853-B423-63A6-FE1F-45E81BC2AD61"
}
最后更新:2016-11-23 17:16:05
上一篇:
DeleteGroup__组管理接口_RAM API文档_访问控制-阿里云
下一篇:
RemoveUserFromGroup__组管理接口_RAM API文档_访问控制-阿里云
SetCACertificateName__ServerCertificate相关API_API 参考_负载均衡-阿里云
RemoveTags__标签相关API_API 参考_负载均衡-阿里云
服务打包__线上服务发布_开发者指南_企业级分布式应用服务 EDAS-阿里云
连通分量__示例程序_图模型_大数据计算服务-阿里云
步骤四:配置推荐引擎__快速入门_推荐引擎-阿里云
步骤一:控制台配置__快速上线_Web 应用防火墙-阿里云
CDN加速域名不可访问或者慢定位步骤__运维技术分享_技术运维问题_CDN-阿里云
Python 收发消息__HTTP 接入(简单)_消息队列 MQ-阿里云
应用管理类__应用操作接口_API参考手册_开放搜索-阿里云
发布消息到Topic__接口列表_服务器端API_阿里云物联网套件-阿里云
相关内容
常见错误说明__附录_大数据计算服务-阿里云
发送短信接口__API使用手册_短信服务-阿里云
接口文档__Android_安全组件教程_移动安全-阿里云
运营商错误码(联通)__常见问题_短信服务-阿里云
设置短信模板__使用手册_短信服务-阿里云
OSS 权限问题及排查__常见错误及排除_最佳实践_对象存储 OSS-阿里云
消息通知__操作指南_批量计算-阿里云
设备端快速接入(MQTT)__快速开始_阿里云物联网套件-阿里云
查询API调用流量数据__API管理相关接口_API_API 网关-阿里云
使用STS访问__JavaScript-SDK_SDK 参考_对象存储 OSS-阿里云