Cloud Workstations uses Identity and Access Management (IAM) to manage access to workstations and workstation configurations. To grant access, assign one or more Identity and Access Management roles to a principal (user, group, or service account). The policy defines which roles are assigned to which principals.
Enable required Identity and Access Management roles
If the Identity and Access Management permissions you need haven't yet been set up, follow these instructions to set up one or more of the following roles:
- Cloud Workstations User
- Cloud Workstations Creator
- Cloud Workstations Admin
- Cloud Workstations Network Admin
- Cloud Workstations Limit Exempted Creator
Cloud Workstations User: for developers using a workstation
To get the permissions that you need to access a workstation, ask your administrator to grant you the following IAM roles:
-
Cloud Workstations User (
roles/workstations.user
) on the workstation -
Cloud Workstations Operation Viewer (
roles/workstations.operationViewer
) on the project
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
Cloud Workstations Creator: for developers creating and connecting to workstations
To get the permissions that you need to view workstation configurations, create workstations, and access workstations, ask your administrator to grant you the following IAM roles:
-
Cloud Workstations Creator (
roles/workstations.workstationCreator
) on the project or individual workstation configuration -
Cloud Workstations Operation Viewer (
roles/workstations.operationViewer
) on the project
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
Cloud Workstations automatically grants the Cloud Workstations User role
(roles/workstations.user
) on any workstation that you create
as Cloud Workstations Creator.
Cloud Workstations Admin: for administrators creating and updating workstation configurations and workstation clusters
To get the permissions that you need to create the Cloud Workstations resources in your project,
ask your administrator to grant you the
Cloud Workstations Admin (roles/workstations.admin
) IAM role on the project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
For more information about using the Google Cloud console to change permissions, see the following section, Add users and edit permissions using the console.
Cloud Workstations Network Admin: for network administrators creating and updating Shared VPC permissions
To get the permissions that you need to create the Cloud Workstations resources in your Shared VPC,
ask your administrator to grant you the
Cloud Workstations Network Admin (roles/workstations.networkAdmin
) IAM role on the project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
For more information about using the Google Cloud console to change permissions, see the following section, Add users and edit permissions using the console.
Cloud Workstations Limit Exempted Creator: for developers creating and connecting to workstations
To get the permissions that you need to view workstation configurations, create workstations exempted from `maxUsableWorkstations` limit, and access workstations, ask your administrator to grant you the following IAM roles on the project:
-
Cloud Workstations Limit Exempted Creator (
roles/workstations.workstationLimitExemptedCreator
) - the project or individual workstation configuration -
Cloud Workstations Operation Viewer (
roles/workstations.operationViewer
) - the project
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
Add users and edit permissions using the Google Cloud console
If you're an administrator for Cloud Workstations, you must have the Cloud Workstations Admin role (or legacy Editor or Owner role) assigned to your account.
To add users or edit permissions, follow these steps:
- Navigate to the Cloud Workstations Workstation configurations page.
- To add new users, click Add users next to the name of the configuration, and enter new user information in the New principals field.
To change existing permissions on a configuration, click the arrow_drop_downexpander arrow on the row with the configuration name, select Edit permissions, and then select Add principal.
Figure 1. Add users and edit permissions from the Cloud Workstations Workstations configurations pane.