Help Center/ Distributed Message Service for RocketMQ/ API Reference/ APIs V2 (Recommended)/ User Management/ Querying Users Granted Permissions for a Consumer Group
Updated on 2026-04-30 GMT+08:00

Querying Users Granted Permissions for a Consumer Group

Function

This API is used to query the list of users granted permissions for a consumer group.

URI

GET /v2/{project_id}/rocketmq/instances/{instance_id}/groups/{group}/accesspolicy

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Project ID. For details about how to obtain it, see Obtaining a Project ID.

Constraints

N/A

Range

N/A

Default Value

N/A

instance_id

Yes

String

Definition

Instance ID. You can call the API for querying all instances to obtain the instance ID. The instance ID is in the response body.

Constraints

N/A

Range

N/A

Default Value

N/A

group

Yes

String

Definition

Consumer group.

Constraints

N/A

Range

N/A

Default Value

N/A

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

offset

No

Integer

Definition

Offset where the query starts.

Constraints

N/A

Range

≥ 0

Default Value

0

limit

No

Integer

Definition

Number of records to query.

Constraints

N/A

Range

1–50

Default Value

10

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

policies

Array of policies objects

Definition

User list.

Constraints

N/A

Range

N/A

Default Value

N/A

total

Number

Definition

Total number of users.

Constraints

N/A

Range

N/A

Default Value

N/A

name

String

Definition

Name of the topic or consumer group.

Constraints

N/A

Range

N/A

Default Value

N/A

Table 4 policies

Parameter

Type

Description

access_key

String

Definition

Username.

Constraints

N/A

Range

N/A

Default Value

N/A

white_remote_address

String

Definition

IP address whitelist.

Constraints

N/A

Range

N/A

Default Value

N/A

admin

Boolean

Definition

Whether the user is an administrator.

Constraints

N/A

Range

  • true: Yes

  • false: No

Default Value

N/A

perm

String

Definition

User permissions.

Constraints

N/A

Range

  • PUB: publish permission.

  • SUB: subscribe permission.

  • PUB|SUB: subscribe and publish permissions.

  • DENY: no permission.

Default Value

N/A

Example Requests

Querying the list of users granted permissions for a consumer group

GET https://{endpoint}/v2/{project_id}/rocketmq/instances/{instance_id}/groups/{group}/accesspolicy

Example Responses

Status code: 200

List of users granted permissions for a consumer group queried.

{
  "policies" : [ {
    "access_key" : "test_01",
    "white_remote_address" : "",
    "admin" : false,
    "perm" : ""
  } ],
  "total" : 1,
  "name" : "test"
}

Status Codes

Status Code

Description

200

List of users granted permissions for a consumer group queried.

Error Codes

See Error Codes.