获取已分配权限的用户列表。
子账号已授权该应用的管理员或成员权限。详情请参见权限管理。
ServiceName: apmplus_openapi
Region: cn-beijing
X-App-Ids: xxx
Content-Type: application/json
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetAssignedPermissionUsers | 接口名称。当前 API 的名称为 GetAssignedPermissionUsers 。 |
Version | String | 是 | 2022-10-12 | 接口版本。当前 API 的版本为 2022-10-12 。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
error_msg | String | "" | 错误信息,成功为空。 |
error_no | Integer | 0 | 错误码,成功为0。 |
data | Array of UserListItem | - | 已分配权限的用户列表。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
user_id | Long | 12345 | 用户ID。 |
user_name | String | user_name | 用户名。 |
apps | Array of KeyLabel | - | 可读写应用列表。 |
services | Array of KeyLabel | - | 可读写服务列表。 |
create_time | Long | 1642562396 | 创建时间。 |
String | test_user@test.com | 子账号邮箱。 | |
phone | String | 151****** | 用户手机号。 |
role_type | Integer |
| 用户角色。
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
key | String | sub_user_key | 子账号key。 |
label | String | sub_user_name | 子账号名。 |
GET https://open.volcengineapi.com?Action=GetAssignedPermissionUsers&Version=2022-10-12&account_id=
{
"data": [
{
"user_id": [12345],
"create_time": 1642562396,
"phone": "151******",
"role_type": 1,
"services": [
{
"key": "sub_user_key",
"label": "sub_user_name"
}
],
"user_name": "user_name",
"display_name": "",
"apps": [
{
"label": "12",
"key": "测试应用"
}
],
"email": "test_user@test.com"
}
],
"error_no": 0,
"error_msg": ""
}
本接口无特有的错误码。更多信息请参见错误码。