Employee Identity (EIAM)

Public Account Unbind Users

API

# Permissions

The Identity Management API is authorized at the application level. Before calling the interface, you need to set interface permissions for different applications. For details, please refer to API Permissions.

Permission Code Description
account_all Read and write permission for account management interfaces
all Read and write permission for all interfaces

# Request Specification

POST https://{your_domain}/api/v2/tenant/applications/{app_id}/accounts/public-account/{app_user_id}/users/unbind

# Request Headers

Parameter Name Chinese Name Required Type Description
Authorization Authorization Yes String Format: Bearer {access_token}
Content-Type Content Type Yes String Fixed value: application/json; charset=utf-8

# Request Example

{
    "user_names": ["cq04130006"]
}
1
2
3

# Request Parameters

Parameter Name Chinese Name Required Type Description
app_id Application ID Yes String Target application id
app_user_id Application Account ID Yes String Target application account id
user_names Username Collection Yes List Collection of user usernames

# Return Example

Correct Example:
HTTP/1.1 200 OK
{
    "account_id": "20220415171558023-84A4-ED5C390B8"
}


Error Example:
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

# Return Parameters

Parameter Name Chinese Name Type Description
account_id Application Account ID String

# Error Codes

Status Code Error Code Error Message Handling Measure
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

I understand. Please paste the Markdown content you need translated, and I will follow all the specified rules.