Employee Identity (EIAM)
Paginated Query of Application-Side Permissions for Application Accounts
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 interfaces |
| account_read | Read permissions for account management interfaces |
| all | Read and write permissions for all interfaces |
| read | Permissions for all read interfaces |
# Request Specification
GET https://{your_domain}/api/v2/tenant/applications/{application_id}/accounts/permissions/page?offset=0&limit=1
# 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 |
|---|---|---|---|---|
| application_id | Application ID | Yes | String | Target application id |
| offset | Page Number | Yes | Int | Starts from page 0 |
| limit | Page Size | Yes | Int | Page size between 1 and 50 |
# Return Example
Correct Example:
HTTP/1.1 200 OK
{
"number": 0,
"total": 2,
"size": 10,
"list": [
{
"accountId": "20230922093020557-4362-A6C9CF0EE",
"roles": [
{
"id": "20230914164827506-35F4-A740454E5",
"remoteId": "testRoleA"
}
]
},
{
"accountId": "20230921140018768-35A4-7DBD541BC",
"roles": [
{
"id": "20230914164827506-35F4-A740454E5",
"remoteId": "testRoleA"
}
],
"funcPerms": [
{
"id": "20230914153344573-EB4E-3CB09F9B6",
"remoteId": null
},
{
"id": "20230920113324284-EFDF-BE5B34E7D",
"remoteId": null
}
]
}
]
}
Error Example:
HTTP/1.1 400 Bad Request
{
"error_code": " APP.0001",
"error_msg": "Application does not exist"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Return Parameters
| Parameter Name | Chinese Name | Type | Description |
|---|---|---|---|
| accountId | Application Account ID | Object | |
| roles | Role Information Collection | Object | In the collection: id: IDaaS primary key information, remoteId: Remote ID |
| funcPerms | Functional Permission Information Collection | Object | In the collection: id: IDaaS primary key information, remoteId: Remote ID |
| dataPerms | Data Permission Information Collection | Object | In the collection: id: IDaaS primary key information, remoteId: Remote ID |
# Error Codes
| Status Code | Error Code | Error Message | Action |
|---|---|---|---|
| 400 | APP.0001 | Application does not exist | Please check if the application exists |
| App does not exist |
