Get User Group Resource List


获取某一用户组权限内的资源列表。

请求格式


GET https://{apigw-address}/app-portal/api/v3/userGroup/resource/assignedList

请求参数(URI)


名称

位置(Path/Query)

必需/可选

数据类型

描述

orgId

Query

必需

String

OU ID。如何获取 orgId 信息 >>

userGroupId

Query

必需

String

用户组 ID。

响应参数


名称

数据类型

描述

resources

Resources 结构体

资源列表。Resources 结构体 >>

Resources 结构体


名称

数据类型

描述

code

String

资源代码。

name

Object

资源的国际化名称。

id

String

资源标识符。

type

String

资源类型代码。

示例

请求示例


url: /app-portal-service/v2.3/userGroup/resource/assignedList?orgId=yourOrgId&userGroupId=yourUserGroupId
method: GET

返回示例


{
  "code": 0,
  "message": "OK",
  "data": {
    "resources": [
      {
        "id": "your_resource_id_1",
        "code": "your_resource_code_1",
        "type": "your_resource_type_code_1",
        "name": {
          "defaultValue": "your_resource_name_1",
          "i18nValue": {
            "zh_CN": "your_resource_name_zh_1",
            "en_US": "your_resource_name_en_1"
          }
        }
      },
      {
        "id": "your_resource_id_2",
        "code": "your_resource_code_2",
        "type": "your_resource_type_code_2",
        "name": {
          "defaultValue": "your_resource_name_2",
          "i18nValue": {
            "zh_CN": "your_resource_name_zh_2",
            "en_US": "your_resource_name_en_2"
          }
        }
      }
    ]
  }
}