--- Title: Create roles with database access only alwaysopen: false categories: - docs - operate - rs description: Create roles with database access only. linkTitle: Create roles with database access only weight: 15 aliases: - /operate/rs/security/access-control/database-access/ url: '/operate/rs/7.4/security/access-control/create-db-roles/' --- Roles with database access grant the ability to access and interact with a database's data. Database access privileges are determined by defining [Redis ACLs]({{}}) and adding them to roles. To create a role that grants database access without granting access to the Redis Enterprise Cluster Manager UI and REST API: 1. [Define Redis ACLs](#define-redis-acls) that determine database access privileges. 1. [Create a role with ACLs](#create-roles-with-acls) added and leave the **Cluster management role** as **None**. ## Define Redis ACLs To define a Redis ACL rule that you can assign to a role: 1. From **Access Control > Redis ACLs**, you can either: - Point to a Redis ACL and select {{< image filename="/images/rs/buttons/edit-button.png#no-click" alt="The Edit button" width="25px" class="inline" >}} to edit an existing Redis ACL. - Select **+ Add Redis ACL** to create a new Redis ACL. 1. Enter a descriptive name for the Redis ACL. This will be used to associate the ACL rule with the role. 1. Define the ACL rule. For more information about Redis ACL rules and syntax, see the [Redis ACL overview]({{}}). {{}} The **ACL builder** does not support selectors and key permissions. Use **Free text command** to manually define them instead. {{}} 1. Select **Save**. {{}} For multi-key commands on multi-slot keys, the return value is `failure`, but the command runs on the keys that are allowed. {{}} ## Create roles with ACLs To create a role that grants database access to users but blocks access to the Redis Enterprise Cluster Manager UI and REST API, set the **Cluster management role** to **None**. To define a role for database access: 1. From **Access Control** > **Roles**, you can: - Point to a role and select {{< image filename="/images/rs/buttons/edit-button.png#no-click" alt="The Edit button" width="25px" class="inline" >}} to edit an existing role. - Select **+ Add role** to create a new role. {{Add role with name}} 1. Enter a descriptive name for the role. This will be used to reference the role when configuring users. 1. Leave **Cluster management role** as the default **None**. {{Add role with name}} 1. Select **+ Add ACL**. {{Add role database acl}} 1. Choose a Redis ACL and databases to associate with the role. {{Add databases to access}} 1. Select the check mark {{< image filename="/images/rs/buttons/checkmark-button.png#no-click" alt="The Check button" width="25px" class="inline" >}} to confirm. 1. Select **Save**. {{Add databases to access}} You can [assign the new role to users]({{}}) to grant database access.