Back to Redis

Create Assign Users

content/operate/rc/security/access-control/data-access-control/create-assign-users.md

latest2.6 KB
Original Source

Before you create a database user, you must [create a data access role]({{< relref "/operate/rc/security/access-control/data-access-control/create-roles" >}}) to assign to that user.

Create a user

To create a user:

  1. Go to Data Access Control from the Redis Cloud console menu.

    {{<image filename="images/rc/data-access-control-menu.png" width="200px" alt="Menu for database access control." >}}

  2. Select the Users tab.

    {{<image filename="images/rc/data-access-control-users-no-users.png" alt="User configuration area." >}}

  3. Select + to create a new user.

    {{<image filename="images/rc/data-access-control-users-add-or-edit.png" width="300px" alt="User add or edit." >}}

  4. Enter a username in the Username field.

    {{<image filename="images/rc/data-access-control-users-add.png" alt="User add username." >}}

    {{<note>}} An error occurs if a user tries to connect to a memcached database with the username admin. Do not use admin for a username if the user will be connecting to a memcached database. {{</note>}}

  5. Select a [Role]({{< relref "/operate/rc/security/access-control/data-access-control/create-roles" >}}) from the list.

    {{<image filename="images/rc/data-access-control-users-add-role.png" width="300px" alt="User select role." >}}

  6. Enter and confirm the user's password. ACL user passwords must be between 8 and 128 characters long.

    Then, select the check mark to save the user.

    {{<image filename="images/rc/data-access-control-users-password-and-finish.png" width="300px" alt="User add password and finish." >}}

Assign roles to existing users

To assign a data access role to an existing user:

  1. Go to Data Access Control from the Redis Cloud console menu.

    {{<image filename="images/rc/data-access-control-menu.png" width="200px" alt="Menu for database access control." >}}

  2. Select the Users tab.

    {{<image filename="images/rc/data-access-control-users.png" alt="User configuration area." >}}

  3. Point to the user and select the Edit* icon when it appears.

    {{<image filename="images/rc/data-access-control-users-add-or-edit.png" width="300px" alt="User add or edit." >}}

  4. Select a [Role]({{< relref "/operate/rc/security/access-control/data-access-control/create-roles" >}}) from the list.

    {{<image filename="images/rc/data-access-control-users-add-role.png" width="300px" alt="User select role." >}}

  5. Select the check mark to save the user.

    {{<image filename="images/rc/data-access-control-users-password-and-finish.png" width="300px" alt="User add password and finish." >}}