arrow_back

Request Temporary Elevated Access with Privileged Access Manager

Sign in Join
Get access to 700+ labs and courses

Request Temporary Elevated Access with Privileged Access Manager

Lab 1 hour universal_currency_alt 7 Credits show_chart Advanced
info This lab may incorporate AI tools to support your learning.
Get access to 700+ labs and courses

GSP1331

Overview

Privileged Access Manager (PAM) is a security solution that helps organizations manage and secure access to sensitive resources and data. It enables the granting of just-in-time, temporary elevated privileges to users only when and for as long as they need them, minimizing the risk associated with standing privileged accounts. By enforcing granular control and providing an audit trail, PAM helps reduce the attack surface and improve overall security posture.

For more detailed information, refer to the official documentation: Privileged Access Manager (PAM) documentation

Objectives

This lab focuses on to utilize Gemini for Developers in the following ways:

  • Understand the core concepts of Privileged Access Manager (PAM).
  • Gain practical experience in setting up and managing PAM entitlements for just-in-time privilege elevation.
  • Demonstrate the workflow for requesting and approving temporary elevated access using PAM.

Setup and requirements

Before you click the Start Lab button

Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.

This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.

To complete this lab, you need:

  • Access to a standard internet browser (Chrome browser recommended).
Note: Use an Incognito (recommended) or private browser window to run this lab. This prevents conflicts between your personal account and the student account, which may cause extra charges incurred to your personal account.
  • Time to complete the lab—remember, once you start, you cannot pause a lab.
Note: Use only the student account for this lab. If you use a different Google Cloud account, you may incur charges to that account.

How to start your lab and sign in to the Google Cloud console

  1. Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the left is the Lab Details pane with the following:

    • The Open Google Cloud console button
    • Time remaining
    • The temporary credentials that you must use for this lab
    • Other information, if needed, to step through this lab
  2. Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).

    The lab spins up resources, and then opens another tab that shows the Sign in page.

    Tip: Arrange the tabs in separate windows, side-by-side.

    Note: If you see the Choose an account dialog, click Use Another Account.
  3. If necessary, copy the Username below and paste it into the Sign in dialog.

    {{{user_0.username | "Username"}}}

    You can also find the Username in the Lab Details pane.

  4. Click Next.

  5. Copy the Password below and paste it into the Welcome dialog.

    {{{user_0.password | "Password"}}}

    You can also find the Password in the Lab Details pane.

  6. Click Next.

    Important: You must use the credentials the lab provides you. Do not use your Google Cloud account credentials. Note: Using your own Google Cloud account for this lab may incur extra charges.
  7. Click through the subsequent pages:

    • Accept the terms and conditions.
    • Do not add recovery options or two-factor authentication (because this is a temporary account).
    • Do not sign up for free trials.

After a few moments, the Google Cloud console opens in this tab.

Note: To access Google Cloud products and services, click the Navigation menu or type the service or product name in the Search field.

Task 1. Enable Privileged Access Manager

In this task, you must enable Privileged Access Manager and then grant a role to the agent. Login to the Google Cloud Console with the Primary User's credentials in the student lab panel at the top left.

  1. In Cloud Console, navigate to IAM & Admin > PAM.

  2. Click on Set up PAM.

  3. Click on Grant role.

  4. Click on Complete setup.

Click Check my progress to verify the objective. Enable Privileged Access Manager.

Task 2. Create the entitlement

In this task, you must create an entitlement in Privileged Access Manager.

  1. In Cloud Console, navigate to IAM & Admin > PAM > ENTITLEMENTS.

  2. Click on Create.

  3. For the entitlement name, enter pam-entitlement.

  4. For Select a Role, select Project IAM Admin.

  5. For Maximum duration, select 1 Day.

  6. For the Requester principal, enter the Primary User’s Username found in the student lab panel.

  7. For the Approver principal, enter the Secondary User’s Username found in the student lab panel.

  8. Click on Done.

  9. Click on Create entitlement.

Click Check my progress to verify the objective. Create the entitlement.

Task 3. Update the entitlement

In this task, you update the entitlement maximum duration.

  1. In Cloud Console, navigate to IAM & Admin > PAM > ENTITLEMENTS FOR ALL USERS.

  2. Click on Edit Entitlement () for pam-entitlement.

  3. For Maximum duration, select 10 hours.

  4. Click on Update entitlement.

  5. Click Confirm.

Click Check my progress to verify the objective. Update the entitlement

Task 4. Request temporary elevated access

In this task, you must request and approve a grant.

  1. In Cloud Console, navigate to IAM & Admin > PAM > MY ENTITLEMENTS.

  2. Click on Request grant.

  3. For Grant duration, select 10 hours.

  4. For Justification, enter pam-test.

  5. Click on Request grant.

  6. Login to Cloud Console as the Secondary User in a new incognito tab. The Secondary User credentials are found in the lab panel at the top left of this lab.

  7. In Cloud Console, navigate to IAM & Admin > PAM > APPROVE GRANTS.

  8. Click on Approve/Deny.

  9. Click on Approve.

Click Check my progress to verify the objective. Request temporary elevated access.

Task 5. Review Approved Grant

  1. As the Secondary User, navigate to IAM & Admin > PAM > GRANTS.

  2. Select the GRANTS FOR ALL USERS tab.

  3. Review the table provided to understand the grants that are available and active. You will notice the Requester is the Primary User and the Approver is the Secondary User.

This allows the Primary User to utilize the role Project IAM Admin to make updates to IAM roles for 10 hours.

  1. Log out of Cloud Console and login once again with the Primary User's credentials.

  2. Navigate to IAM & Admin > PAM > GRANTS and select the MY GRANTS tab.

  3. Notice that the Primary User has been granted the Project IAM Admin role for a duration of 10 hours.

Congratulations!

In this lab you learned how to manage temporary elevated access using Privileged Access Manager by configuring entitlements and just-in-time grants to elevate priviledged for a specific user.

Manual Last Updated May 26th, 2025

Lab Last Tested May 26th, 2025

Copyright 2025 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.

Before you begin

  1. Labs create a Google Cloud project and resources for a fixed time
  2. Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
  3. On the top left of your screen, click Start lab to begin

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

Use private browsing to run the lab

Use an Incognito or private browser window to run this lab. This prevents any conflicts between your personal account and the Student account, which may cause extra charges incurred to your personal account.