员工身份(EIAM)
 公共账号删除使用者
   接口
 # 权限
身份管理API是以应用维度授权的,在调用接口前需为不同的应用设置接口权限,详情请参考API权限。
| 权限代码 | 描述 | 
|---|---|
| account_all | 账户管理接口的读写权限 | 
| all | 全部接口读写权限 | 
# 请求说明
POST https://{your_domain}/api/v2/tenant/applications/{app_id}/accounts/public-account/{app_user_id}/users/unbind
# 请求头
| 参数名 | 中文名称 | 必须 | 类型 | 描述 | 
|---|---|---|---|---|
| Authorization | 授权 | 是 | String | 格式:Bearer {access_token} | 
| Content-Type | 内容类型 | 是 | String | 固定值:application/json; charset=utf-8 | 
# 请求示例
{
    "user_names": ["cq04130006"]
}
1
2
3
2
3
# 请求参数
| 参数名 | 中文名称 | 必须 | 类型 | 描述 | 
|---|---|---|---|---|
| app_id | 应用ID | 是 | String | 目标应用id | 
| app_user_id | 应用账号ID | 是 | String | 目标应用账号id | 
| user_names | 用户名集合 | 是 | List | 使用者用户名集合 | 
# 返回示例
正确示例:
HTTP/1.1 200 OK
{
    "account_id": "20220415171558023-84A4-ED5C390B8"
}
错误示例:
HTTP/1.1 400 Bad Request
{
    "error_code": " APP.0006",
    "error_msg": "应用ID不能为空"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
# 返回参数
| 参数名 | 中文名称 | 类型 | 描述 | 
|---|---|---|---|
| account_id | 应用账号ID | String | 
# 错误码
| 状态码 | 错误码 | 错误信息 | 处理措施 | 
|---|---|---|---|
| 400 | APP.0006 | 应用ID不能为空 | 请检查应用ID是否为空 | 
| App ID cannot be empty | |||
| 400 | APP.ACCOUNT.0047 | 账号的ID不能为空 | 请检查账号ID是否为空 | 
| The ID of the account cannot be blank | |||
| 400 | APP.0001 | 应用不存在 | 请检查应用是否已被删除 | 
| App does not exist | |||
| 400 | APP.ACCOUNT.0038 | 公共账号不存在 | 请检查公共账号是否存在 | 
| Public account does not exist | |||
| 400 | APP.ACCOUNT.0001 | 账号名不能为空 | 请检查账号名是否为空 | 
| Account name cannot be empty | 
