Employee Identity (EIAM)
Bind Public Account Owner
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 permissions for account management APIs |
| all | Read and write permissions for all APIs |
# Request Specification
POST https://{your_domain}/api/v2/tenant/applications/{app_id}/accounts/public-account/{app_user_id}/owner
# 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_name": "cq04130006"
}
1
2
3
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_name | Username | Yes | String | Owner's username |
# 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
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.0037 | 责任人不存在 | 请检查责任人是否存在 |
| The responsible person does not exist |
Please provide the Markdown content you need translated.
