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
-
Navigate to the users table in the DynamoDB console.
-
Select Explore Table Items.
-
Select the entry that corresponds to the user you want to be an admin.
-
Select Actions then Edit item.
-
Modify the role to be Admin or User.
-
Select Save and close.
-
Connect to the Handler host.
-
Restart the Handler.
$
sudo systemctl restart dcv-access-console-handler
MariaDB
-
Connect to the Handler host.
-
Enter the username of the user you want to be an admin:
ADMIN_USER=
replace with username
-
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
-
Retrieve the name of the users table.
$
sudo mysql -e "show tables like '%User';" --database=$DATABASE_NAMEIt is the table ending in User, not
SessionTemplatePublishedToUser
. -
Update the user role.
USER_TABLE=
user table name
$
sudo mysql -e "UPDATE $DATABASE_NAME.$USER_TABLE SET role = 'Admin' WHERE userId='$ADMIN_USER';" -
Restart the Handler.
$
sudo systemctl restart dcv-access-console-handler