iam__KeystoneListGroupsForUser
Retrieves IAM user groups for a specified user ID, enabling administrators to audit memberships or users to view their own group assignments.
Instructions
[IAM] 该接口可以用于管理员查询IAM用户所属用户组,或IAM用户查询自己所属用户组。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>"
},
"name": "iam__KeystoneListGroupsForUser"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | 待查询的IAM用户ID,获取方式请参见:[获取项目名称、项目ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)。 |