更新时间:2024-10-15 GMT+08:00
分享

查询功能权限

功能介绍

查询用户权限码。

URI

GET /basic/mgmt/public/api/v1/sysmgr/privileges

请求参数

表1 路径参数

参数

是否必选

参数类型

描述

tenantId

String

租户ID

userName

String

用户名称

userId

String

用户ID

请求示例

GET /basic/mgmt/public/api/v1/sysmgr/privileges?userName=sysadmin&tenantId=9190086000001150600&userId=1008600000089987983

响应参数

状态码: 200

表2 响应Body参数

参数

参数类型

描述

code

String

返回码

message

String

返回码描述

totalCount

Long

返回数据总条数

响应示例

{
    "reserve": null,
    "datas": {
        "globalPrilivileges": [
            {
                "globalId": "-1",
                "globalName": "系统管理员",
                "globalPrivileges": [
                    "messagemgmt",
                    "deluser",
                    "moduser",
                    "deleteMessageTemplate",
                    "modapply",
                    "keymgmt",
                    "delMessageForwardConfig",
                    "addapply",
                    "adduser",
                    "transferUserRole",
                    "usermgmt"
                ]
            },
            {
                "globalId": "-2",
                "globalName": "安全保密员",
                "globalPrivileges": [
                    "qryApplyRecords",
                    "delmember",
                    "delayUserLicense",
                    "transfer",
                    "addmember",
                    "qryUsersWithoutLicense",
                    "viewmember"
                ]
            },
            {
                "globalId": "-3",
                "globalName": "安全审计员",
                "globalPrivileges": [
                    "systemmgmt",
                    "sysmgmt",
                    "logmgmt"
                ]
            },
            {
                "globalId": "676096115807883264",
                "globalName": "suntest001",
                "globalPrivileges": [
                    "upload-confirm",
                    "integrationmgmt",
                    "applyintegration",
                    "sysmgmt"
                ]
            },
            {
                "globalId": "678294893122031616",
                "globalName": "suntest0010",
                "globalPrivileges": [
                    "sysmgmt",
                    "integrationmgmt"
                ]
            }
        ],
        "teamList": [
            {
                "teamId": "662706318057934848",
                "teamName": "team001",
                "teamRoles": [
                    {
                        "teamRoleId": "681912501788483584",
                        "teamRoleName": "test0009",
                        "globalPrivileges": [
                            "logmgmt",
                            "sysmgmt",
                            "systemmgmt"
                        ]
                    }
                ]
            },
            {
                "teamId": "681912555060338688",
                "teamName": "test0009",
                "teamRoles": [
                    {
                        "teamRoleId": "681912501788483584",
                        "teamRoleName": "test0009",
                        "globalPrivileges": [
                            "applyintegration",
                            "sysmgmt",
                            "integrationmgmt",
                            "upload"
                        ]
                    }
                ]
            }
        ]
    },
    "totalCount": null,
    "error_code": "IPDC.01020000",
    "error_msg": "success"
}

错误码

请参见错误码

相关文档