Diagram
A four-step left-to-right flow showing a user gaining temporary privileged access by group membership and impersonating a privileged service account that holds the admin role, with audit logging.
Privileged Access With Groups and Impersonation
Privileged database and infrastructure access uses a temporary elevation pattern that keeps standing permissions narrow. In this pattern, the control plane manages a privileged service account that holds a powerful role, such as Compute Admin (roles/compute.admin), while no human holds that role directly. The privileged service account depends on the project IAM policy for its power, and humans depend on a group binding to use it.
Access flows from group membership to impersonation to privileged action. An administrator creates a Google group for elevation, such as elevated-compute-access, and grants the group Service Usage Consumer (roles/serviceusage.serviceUsageConsumer) plus Service Account Token Creator (roles/iam.serviceAccountTokenCreator) on the privileged service account. A member of the group then impersonates the service account for the period of membership, so the powerful role is exercised only while the user belongs to the group. Removing the user from the group ends the ability to impersonate without changing the service account itself.
Domain 1 of 2
21 practice questions
Practice this DomainLast updated