员工身份(EIAM)
 查询单个应用账号的应用端权限
   接口
 # 权限
身份管理API是以应用维度授权的,在调用接口前需为不同的应用设置接口权限,详情请参考API权限。
| 权限代码 | 描述 | 
|---|---|
| account_all | 账户管理接口的读写权限 | 
| account_read | 账户管理接口的读权限 | 
| all | 全部接口读写权限 | 
| read | 所有读接口的权限 | 
# 请求说明
GET https://{your_domain}/api/v2/tenant/applications/{application_id}/account/{account_id}/permissions
# 请求头
| 参数名 | 中文名称 | 必须 | 类型 | 描述 | 
|---|---|---|---|---|
| Authorization | 授权 | 是 | String | 格式:Bearer {access_token} | 
| Content-Type | 内容类型 | 是 | String | 固定值:application/json; charset=utf-8 | 
# 请求示例
无
# 请求参数
| 参数名 | 中文名称 | 必须 | 类型 | 描述 | 
|---|---|---|---|---|
| application_id | 应用ID | 是 | String | 目标应用id | 
| account_id | 应用账号ID | 是 | String | 
# 返回示例
正确示例:
HTTP/1.1 200 OK
{
    "roles": [
        {
            "id": "20230914164827506-35F4-A740454E5",
            "remoteId": null
        }
    ],
    "funcPerms": [
        {
            "id": "20230914153344573-EB4E-3CB09F9B6",
            "remoteId": null
        },
        {
            "id": "20230920113324284-EFDF-BE5B34E7D",
            "remoteId": null
        }
    ],
    "dataPerms": [
        {
            "id": "20230914153344573-EB4E-3CB09F9B6",
            "remoteId": null
        },
        {
            "id": "20230920113324284-EFDF-BE5B34E7D",
            "remoteId": null
        }
    ]
}
错误示例:
HTTP/1.1 400 Bad Request
{
    "error_code": " APP.ACCOUNT.0028",
    "error_msg": "应用账号不存在"
}
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
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
# 返回参数
| 参数名 | 中文名称 | 类型 | 描述 | 
|---|---|---|---|
| roles | 角色信息集合 | Object | 集合中id: IDaaS的主键信息,remoteId: 远程 ID | 
| funcPerms | 功能权限信息集合 | Object | 集合中id: IDaaS的主键信息,remoteId: 远程 ID | 
| dataPerms | 数据权限信息集合 | Object | 集合中id: IDaaS的主键信息,remoteId: 远程 ID | 
# 错误码
| 状态码 | 错误码 | 错误信息 | 处理措施 | 
|---|---|---|---|
| 400 | APP.ACCOUNT.0028 | 应用账号不存在 | 请检查应用账号是否存在 | 
| The application account does not exist | |||
| 400 | APP.0001 | 应用不存在 | 请检查应用是否存在 | 
| App does not exist | 
