This topic describes the causes of and solutions to the Not authorized to access group error message when you use ApsaraMQ for Kafka.
Problem description
When I use ApsaraMQ for Kafka, the "Not authorized to access group" error message is returned.
Cause
The error message is returned because no consumer group is created.
Solution
You can use one of the following methods to create a consumer group:
Use the ApsaraMQ for Kafka console. For more information, see the "Step 2: Create a group" section in Step 3: Create resources.
Call the corresponding API operation. For more information, see CreateConsumerGroup.