GenAuth DocsDocuments
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
  • Single Page Web Application

  • Mobile and Client Applications

  • Standard Web Application

    • Java

      • Installation and Usage
      • User Authentication Module
      • Management Module

        • User Management

        • Group Management

        • Role Management

        • Organization Management

        • Access Control Management

          • Create Resource
          • Batch Create Resources
          • Get Resource Details
          • Batch Get Resource Details
          • Get Resource List by Page
          • Modify Resource
          • Delete Resource
          • Batch Delete Resources
          • Create Permission Group
          • Batch Create Permission Groups
          • Get Permission Group Details
          • Batch Get Permission Group Details
          • Modify Permission Group Information
          • Delete Permission Group Information
          • Batch Delete Permission Groups
          • Authorize Resources
          • Get Authorized Resource List for Subject
          • Check if User Has Permission for Resource Action
        • External Identity Source Management

        • Custom Field Management

    • Node.js

    • Python

  • Framework Integration

  • Others

  1. Development Integration
  2. /
  3. Standard Web Application
  4. /
  5. Java
  6. /
  7. Management Module

  8. /
  9. Access Control Management

  10. /
  11. Batch Get Permission Group Details

¶ 批量获取权限分组详情

Update time: 2025-07-23 07:34:21
Edit

分别通过权限分组唯一标志符,批量获取权限分组详情。

¶ 请求参数

名称类型必填默认值描述示例值
codeListstring[]是-资源 code 列表,批量可以使用逗号分隔。code1,code2

¶ 示例代码

import cn.authing.sdk.java.dto.*;
import cn.authing.sdk.java.client.ManagementClient;
import cn.authing.sdk.java.model.ManagementClientOptions;

class ManagementClientTest {
    private static String ACCESS_KEY_ID = "GEN_AUTH_USERPOOL_ID";
    private static String ACCESS_KEY_SECRET = "GEN_AUTH_USERPOOL_SECRET";

    public static void main(String[] args) {
        ManagementClientOptions clientOptions = new ManagementClientOptions(ACCESS_KEY_ID, ACCESS_KEY_SECRET);
        ManagementClient managementClient = new ManagementClient(clientOptions);



        request.setCodeList("code1,code2");
        NamespaceListRespDto response = managementClient.getNamespacesBatch(request);
        System.out.println(response);
    }
}

¶ 请求响应

类型: NamespaceListRespDto

名称类型描述
statusCodenumber业务状态码,可以通过此状态码判断操作是否成功,200 表示成功。
messagestring描述信息
apiCodenumber细分错误码,可通过此错误码得到具体的错误类型。
dataarray权限分组列表

示例结果:

{
  "statusCode": 200,
  "message": "操作成功",
  "apiCode": 20001,
  "data": {
    "code": "my-namespace",
    "name": "我的权限分组",
    "description": "我的权限分组描述"
  }
}

¶ 数据结构

¶ NamespaceDto

名称类型必填描述
codestring是权限分组唯一标志符。 示例值: my-namespace
namestring否权限分组名称。 示例值: 我的权限分组
descriptionstring否权限分组描述信息。 示例值: 我的权限分组描述
Previous article: Get Permission Group Details Next article: Modify Permission Group Information
  • 请求参数
  • 示例代码
  • 请求响应
  • 数据结构

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.