Employee Identity (EIAM)

Get All Authorized Application Accounts for a User

API

# Permissions

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

Permission Code Description
user_all Read and write permissions for user management APIs
user_read Read permissions for user management APIs
all Read and write permissions for all APIs
read Permissions for all read APIs

# Request Specification

GET https://{your_domain}/api/v2/tenant/users/{user_id}/accounts

# 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
user_id User ID Yes String

# Return Example

Correct Example:
HTTP/1.1 200 OK
Content-Type: application/json
{
    "total": 1,
    "accounts": [
        {
            "account_type": "BASIC_ACCOUNT",
            "extension": {},
            "account_name": "example01",
            "name": "cq04130006",
            "id": "20220414103145123-C349-6B6D9C126",
            "application_id": "20220315111259085-E8C5-6634C1D45"
        }
    ]
}


Error Example:
HTTP/1.1 400 Bad Request
{
  "error_msg": "User does not exist",
  "error_code": "USER.0001"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# Return Parameters

Parameter Name Chinese Name Type Description
total Total Count Int
accounts Application Account Collection List
--id Application Account ID String
--name Name String
--account_name Application Account Name String
-- account_type Application Account Type String
-- application_id Application ID String
-- extension Extension Properties Object

# Error Codes

Status Code Error Code Error Message Action
400 USER.0001 User does not exist Please check if the corresponding user exists