User management and authorization
LDAP user accounts for your Alibaba Cloud Message Queue for Confluent instance must be created and authorized in the console before they can be used.
User management
Alibaba Cloud Message Queue for Confluent allows you to add and delete users in the console.
Add a user
Log on to the ApsaraMQ for Confluent console. In the left-side navigation pane, click Instances.
On the Instances page, click the name of the instance that you want to manage.
-
On the Instance Details page, in the left-side navigation pane, click User management.
-
On the User management page, click Add LDAP user.
-
In the Add LDAP user dialog box, set a username and password, confirm the password, and then click OK.
ImportantUsernames must be unique. Any attempt to add a user with an existing name will fail.
Delete a user
-
In the Actions column for the user you want to delete, click Delete.
-
In the System prompt dialog box, read the message and click OK.
ImportantDeleting a user revokes all their permissions and access to the instance.
Authorization
After creating a user in the Alibaba Cloud Message Queue for Confluent console, you can grant permissions by using either of the following methods:
-
ACL authorization: Uses an access control list (ACL) to provide fine-grained, permission-based control over resources.
-
RBAC authorization: Uses role-based access control (RBAC) to grant permissions through roles. Ideal for bulk authorization and permission revocation.
ACL authorization
Use the Confluent command-line interface (CLI) for ACL authorization. For more information, see Manage ACLs by using the Confluent CLI.
RBAC authorization
You can configure RBAC authorization in two ways:
-
Use the Control Center of Alibaba Cloud Message Queue for Confluent. This method is described below.
-
Use the Confluent CLI. For more information, see Manage RBAC permissions by using the Confluent CLI.
Log on to the ApsaraMQ for Confluent console. In the left-side navigation pane, click Instances.
On the Instances page, click the name of the instance that you want to manage.
-
On the Instance Details page, click Log on to console in the upper-right corner. On the logon page, enter your username and password to access the Home page of the Control Center.
-
In the upper-right corner of the Home page, choose
> Manage role assignments to open the RBAC authorization page. -
The authorization page displays 10 built-in Confluent roles.
ImportantYou cannot create custom roles; you must use the built-in Confluent roles to assign permissions.

-
Click the Assignments tab, and then click the Cluster ID for the cluster that you want to manage.

-
Grant permissions to the user based on the Cluster type.
Kafka cluster
-
Click the Cluster ID of the Kafka cluster and grant permissions on the required resources, such as a Cluster, Group, Topic, or TransactionId. The following example shows how to grant the user
testtheResourceOwnerrole on aTopicwith the prefixdemo.
-
Click Add role assignment to open the role assignment details page. Configure the parameters as shown in the following figure, and then click Save.

Connect cluster
-
Click the Cluster ID of the Connect cluster and grant permissions for the required resource (Cluster or Connector). This example demonstrates how to grant the
ClusterAdminrole for theClusterresource to the usertest.
-
Click Add role assignment to open the role assignment details page. Configure the parameters as shown in the following figure, and then click Save.

KSQL
-
Click the Cluster ID of KSQL to authorize the required resource (Cluster). The following example shows how to grant the
ResourceOwnerrole for aClusterto the usertest.
-
Click Add role assignment to open the role assignment details page. Configure the parameters as shown in the following figure, and then click Save.

Schema Registry
-
Click the Cluster ID of Schema Registry and grant permissions for the required resource (Cluster or Subject). The following example shows how to grant the
ResourceOwnerrole for allSubjectresources to the usertest.
-
Click Add role assignment to open the role assignment details page. Configure the parameters as shown in the following figure, and then click Save.

-