IAM 身份中心-绑定用户和组:请求示例

时间:2024-09-13 17:36:20

请求示例

将用户添加到用户组中,用户和用户组必须在同一身份源下。

POST https://{hostname}/v1/identity-stores/{identity_store_id}/group-memberships

{
  "group_id" : "0efaa0db-6aa4-7aaa-6aa5-c222aaaaf31a",
  "member_id" : {
    "user_id" : "ac6aa714-daa7-1aaa-aaa2-6715aaaa4dd9"
  }
}
support.huaweicloud.com/api-identitycenter/CreateGroupMembership.html