# 说明

获取角色权限

# url

https://apiv2.tapd.tencent.com/role_permissions/list_role_permissions

# 支持格式

JSON/XML(默认JSON格式)

# HTTP请求方式

GET

# 请求数限制

# 请求参数

字段名 必选 类型及范围 说明 特殊规则
workspace_id integer 项目ID
role_id string 角色ID,多种角色使用英文逗号 , 分隔

# 调用示例及返回结果

# 获取角色权限

# curl 使用 Basic Auth 鉴权调用示例

curl -u 'api_user:api_password' 'https://apiv2.tapd.tencent.com/role_permissions/list_role_permissions?workspace_id=10104801&role_id=1000000000000000017,1000000000000000016'

# curl 使用 OAuth Access Token 鉴权调用示例

curl -H 'Authorization: Bearer ACCESS_TOKEN' 'https://apiv2.tapd.tencent.com/role_permissions/list_role_permissions?workspace_id=10104801&role_id=1000000000000000017,1000000000000000016'

# 返回结果

{
    "status": 1,
    "data": {
        "Iteration": [
            "规划迭代"
        ],
        "Board": [
            "复制看板",
            "复制工作项"
        ],
        "Pipeline": [
            "访问流水线"
        ],
        "Report": [
            "Add Custom System Report",
            "Edit Custom System Report",
            "Delete Custom System Report"
        ],
        "Gantt": [
            "导出甘特图",
            "设置项目高亮线"
        ],
        "Release": [
            "创建发布计划",
            "编辑发布计划",
            "规划发布计划",
            "关闭/删除发布计划",
            "导出发布计划"
        ],
        "Tcase": [
            "Export Test Case",
            "Import Test Case"
        ],
        "TestPlan": [
            "Manage Test Plan",
            "Plan Test Plan",
            "Excute Test Plan",
            "Batch Execute All",
            "Export Test Plan",
            "Import Test Plan"
        ],
        "Milestone": [
            "Access Milestone"
        ]
    },
    "info": "success"
}
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
上次更新: 2023-12-20 10:38:33