员工身份(EIAM)

查询应用侧功能权限

接口

# 权限

身份管理API是以应用维度授权的,在调用接口前需为不同的应用设置接口权限,详情请参考API权限

权限代码 描述
app_func_read 应用侧功能权限接口的读权限
app_func_all 应用侧功能权限接口读写权限
read 全部接口读权限
all 全部接口读写权限

# 请求说明

GET https://{your_domain}/api/v2/tenant/applications/{application_id}/func-perms

# 请求头

参数名 中文名称 必须 类型 描述
Authorization 授权 String 格式:Bearer {access_token}
Content-Type 内容类型 String 固定值:application/json; charset=utf-8

# 请求示例

# 请求参数

参数名 中文名称 必须 类型 描述
application_id 应用ID String 最大长度50
offset 第几页 Int 从第0页开始
limit 每页大小 Int 每页数量在1-50之间

# 返回示例

成功示例:
HTTP/1.1 200 OK
{
    "number": 0,
    "total": 5,
    "size": 50,
    "list": [
        {
            "id": "20230914153344573-EB4E-3CB09F9B6",
            "appId": "20230821144453253-FBA1-0F1B0C0DD",
            "parentId": null,
            "code": "One010A",
            "name": "用户管理",
            "type": "MENU",
            "description": "描述2",
            "sequence": 4,
            "level": 1,
            "path": "/20230914153344573-EB4E-3CB09F9B6",
            "displayPath": "/用户管理",
            "remoteId": null,
            "extension": {}
        },
        {
            "id": "20230922112558046-EC85-3ABC53BEC",
            "appId": "20230821144453253-FBA1-0F1B0C0DD",
            "parentId": null,
            "code": "One010B",
            "name": "机构管理",
            "type": "MENU",
            "description": "描述",
            "sequence": 1,
            "level": 1,
            "path": "/20230922112558046-EC85-3ABC53BEC",
            "displayPath": "/机构管理",
            "remoteId": null,
            "extension": {}
        },
        {
            "id": "20230920113324284-EFDF-BE5B34E7D",
            "appId": "20230821144453253-FBA1-0F1B0C0DD",
            "parentId": "20230914153344573-EB4E-3CB09F9B6",
            "code": "btn-son",
            "name": "btn-son",
            "type": "OPERATE",
            "description": "btn-son",
            "sequence": null,
            "level": 2,
            "path": "/20230914153344573-EB4E-3CB09F9B6/20230920113324284-EFDF-BE5B34E7D",
            "displayPath": "/用户管理/btn-son",
            "remoteId": null,
            "extension": {}
        },
        {
            "id": "20230920113326114-2C40-D835C2683",
            "appId": "20230821144453253-FBA1-0F1B0C0DD",
            "parentId": "20230914153344573-EB4E-3CB09F9B6",
            "code": "btn-son1",
            "name": "btn-son1",
            "type": "OPERATE",
            "description": "btn-son1",
            "sequence": null,
            "level": 2,
            "path": "/20230914153344573-EB4E-3CB09F9B6/20230920113326114-2C40-D835C2683",
            "displayPath": "/用户管理/btn-son1",
            "remoteId": null,
            "extension": {}
        },
        {
            "id": "20230922113322791-A016-9B784A7B0",
            "appId": "20230821144453253-FBA1-0F1B0C0DD",
            "parentId": "20230922112558046-EC85-3ABC53BEC",
            "code": "One010B01",
            "name": "机构管理新增",
            "type": "OPERATE",
            "description": "描述1",
            "sequence": 1,
            "level": 2,
            "path": "/20230922112558046-EC85-3ABC53BEC/20230922113322791-A016-9B784A7B0",
            "displayPath": "/机构管理/机构管理新增",
            "remoteId": null,
            "extension": {}
        }
    ]
}


错误示例:
HTTP/1.1 400 Bad Request
{
    "error": "invalid_token",
    "error_description": "Invalid access token."
}
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92

# 返回参数

参数名 中文名称 类型 描述
id 主键 String
appId 应用ID String
objmId 对象模型ID String
parentId 父级ID String
code 应用功能权限编码 String
name 应用功能权限名称 String
type 应用功能权限类型 String MENU: 功能菜单类型; OPERATE: 操作按钮类型
description 描述信息 String
sequence 排序序号 String
level 层级 String
path ID路径 String
displayPath 名称路径 String
remoteId 功能权限远程对象ID String
extension 扩展属性键值对 String

# 错误码

状态码 错误码 错误信息 处理措施
400 APP.OBJECTMODEL.0011 未开启应用功能权限模型
The application function permissions model is not opened