User roles - Amazon DCV Access Console
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

User roles

There are two roles a user can have with the Amazon DCV Access Console: admin and user. Both of these user roles can create and connect to their own sessions.

Admin role
  • Create sessions

  • View and connect to all sessions

  • View, create, assign and modify session templates

  • View hosts

  • View and import users

  • View, import and modify user groups

User role
  • Create sessions

  • View and connect to all sessions

Changing a user's role

To change a user’s role, you must edit the user directly from your configured datastore. You cannot change a user's role from the Access Console.

DynamoDB
  1. Navigate to the users table in the DynamoDB console.

  2. Select Explore Table Items.

  3. Select the entry that corresponds to the user you want to be an admin.

  4. Select Actions then Edit item.

  5. Modify the role to be Admin or User.

  6. Select Save and close.

  7. Connect to the Handler host.

  8. Restart the Handler.

    $ sudo systemctl restart dcv-access-console-handler
MariaDB
  1. Connect to the Handler host.

  2. Enter the username of the user you want to be an admin:

    ADMIN_USER=replace with username
  3. Enter the database name you chose during setup. If you left it as the default, the name is dcv_access_console.

    DATABASE_NAME=replace with database name
  4. Retrieve the name of the users table.

    $ sudo mysql -e "show tables like '%User';" --database=$DATABASE_NAME

    It is the table ending in User, not SessionTemplatePublishedToUser.

  5. Update the user role.

    USER_TABLE=user table name
    $ sudo mysql -e "UPDATE $DATABASE_NAME.$USER_TABLE SET role = 'Admin' WHERE userId='$ADMIN_USER';"
  6. Restart the Handler.

    $ sudo systemctl restart dcv-access-console-handler