Employee Identity (EIAM)
Query Public Account Owner
API
# Permissions
The Identity Management API is authorized at the application level. Before calling the API, you need to set API permissions for different applications. For details, please refer to API Permissions.
| Permission Code | Description |
|---|---|
| account_all | Read/write permissions for account management APIs |
| account_read | Read permissions for account management APIs |
| all | Read/write permissions for all APIs |
| read | Permissions for all read APIs |
# Request Specification
GET 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
None
# 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 |
# Response Example
Correct Example:
HTTP/1.1 200 OK
{
"user_id": "20220331164602949-904C-D475B60AE",
"user_name": "zhangsan",
"disabled": false
}
Error Example:
HTTP/1.1 400 Bad Request
{
"error_code": " APP.ACCOUNT.0038",
"error_msg": "Public account does not exist"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Response Parameters
| Parameter Name | Chinese Name | Type | Description |
|---|---|---|---|
| user_id | User ID | String | |
| user_name | Username | String | |
| disabled | Disabled Status | Boolean |
# Error Codes
| Status Code | Error Code | Error Message | Handling Measure |
|---|---|---|---|
| 400 | APP.0006 | Application ID cannot be empty | Please check if the application ID is empty |
| App ID cannot be empty | |||
| 400 | APP.ACCOUNT.0047 | Account ID cannot be empty | Please check if the account ID is empty |
| The ID of the account cannot be blank | |||
| 400 | APP.0001 | Application does not exist | Please check if the application has been deleted |
| App does not exist | |||
| 400 | APP.ACCOUNT.0038 | Public account does not exist | Please check if the public account exists |
| Public account does not exist | |||
| 400 | APP.ACCOUNT.0037 | Responsible person does not exist | Please check if the responsible person exists |
| The responsible person does not exist |
I am ready to proceed. Please provide the Markdown content you would like translated.
