Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Create a bucket and upload a sample file
/ 20
Remove project access
/ 40
Add Storage permissions
/ 40
Create a bucket and upload a sample file
/ 20
Remove project access
/ 40
Add Storage permissions
/ 40
Google Cloud's Identity and Access Management (IAM) service lets you create and manage permissions for Google Cloud resources. Cloud IAM unifies access control for Google Cloud services into a single system and provides a consistent set of operations.
In this lab, you sign in with two different sets of credentials to experience how granting and revoking permissions works with Google Cloud Project Owner and Viewer roles.
In this lab, you learn how to perform the following tasks:
This is an introductory level lab. Little to no prior knowledge of Cloud IAM is expected. Experience with Cloud Storage is helpful to complete the tasks in this lab, but is not required. Make sure that you have a file in .txt or .html format available. If you are looking for more advanced practice with Cloud IAM, be sure to check out the following Google Skills lab, IAM Custom Roles.
Once you are prepared, follow the steps below to set up your lab environment.
As mentioned earlier, this lab provides two sets of credentials to illustrate IAM policies and what permissions are available for specific roles.
In the Lab Connection panel on the left side of your lab, you see a list of credentials that resembles the following:
Notice that there are two usernames: Username 1 and Username 2. These represent identities in Cloud IAM, each with different access permissions allocated to them. These "roles" set constraints on what you can and cannot do with Google Cloud resources in the project you have been allocated.
You should now have two Google Cloud console tabs open in your browser—one signed in with Username 1 and the other with Username 2.
Occasionally, a user session is overwritten in a browser tab or you might be confused about which user is signed into which browser tab.
To view which user is signed into a browser tab, hover over your user avatar in the Google Cloud console.
To reset which user is signed into a browser tab:
In this task, you explore the IAM console and review basic project-level roles.
There are four basic roles:
These are basic roles (formerly referred to as primitive roles) in Google Cloud. Basic roles set project-level permissions and control access and management across all Google Cloud services unless otherwise specified.
The following table pulls definitions from the Google Cloud IAM documentation, Basic roles, which gives a brief overview of Browser, Viewer, Editor, and Owner role permissions:
| Role Name | Permissions |
|---|---|
roles/browser |
Read access to browse the hierarchy for a project, including folders, organizations, and IAM policies. This role doesn't include permission to view resources within a project. |
roles/viewer |
Permissions for read-only actions that do not affect state, such as viewing (but not modifying) existing resources or data. |
roles/editor |
All viewer permissions, plus permissions for actions that modify state, such as changing existing resources. |
roles/owner |
All editor permissions and permissions for the following actions: • Manage roles and permissions for a project and all resources within the project. • Set up billing for a project. |
Because you can manage roles and permissions for this project, Username 1 has Project Owner (roles/owner) permissions.
You should see:
resourcemanager.projects.setIamPolicy) for this action.This is an example of how IAM roles affect what you can and cannot do in Google Cloud.
In this task, you create a Cloud Storage bucket and upload a sample file to test IAM permissions.
Ensure that you are in the Username 1 Google Cloud console tab.
| Property | Value |
|---|---|
| Name | [globally-unique-name] (create a unique name) and click Continue |
| Location type | Multi-region |
Note the bucket name. You will use it in a later step.
Click Check my progress to verify the objective.
Because Username 2 has the Viewer role, the user has read-only access to view resources in the project, such as Cloud Storage buckets.
In this task, you remove the Project Viewer role from Username 2 and verify that access is revoked.
Notice that the user has disappeared from the principals list. The user has no access now.
You should see a permission error.
Click Check my progress to verify the objective.
In this task, you grant the Storage Object Viewer role to Username 2 and test bucket access.
Username 2 does not have the Project Viewer role, so that user cannot view the project or general resources in the Google Cloud console. However, this user has specific access to Cloud Storage via the Storage Object Viewer role.
[YOUR_BUCKET_NAME] with the name of the bucket you created earlier:You should receive a similar output:
AccessDeniedException, wait a minute for permissions to propagate and run the previous command again.As demonstrated, you gave Username 2 view access to the Cloud Storage bucket objects.
Click Check my progress to verify the objective.
In this lab, you explored Google Cloud IAM project-level roles and exercised granting and revoking IAM roles for a user.
This lab is also part of a series of labs called Qwik Starts. These labs are designed to give you a little taste of the many features available with Google Cloud. Search for "Qwik Starts" in the Google Skills catalog to find the next lab you'd like to take!
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated August 13, 2026
Lab Last Tested August 13, 2026
Copyright 2026 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one