A platform automation service account named `[email protected]` is tasked with creating new Google Cloud projects under the `Engineering` folder and associating them with the enterprise Billing Account `01A2B3-456C78-9DEF01`. The service account has already been granted the Project Creator (`roles/resourcemanager.projectCreator`) role on the `Engineering` folder. However, automated deployments fail when attempting to link newly created projects to the billing account. Following the principle of least privilege, which additional IAM role configuration is required to enable the service account to complete project-to-billing linking?
- Grant the service account the Billing Account User (`roles/billing.user`) role directly on Billing Account `01A2B3-456C78-9DEF01`.Cevap
- BNo additional roles are required because Project Creator on the folder automatically inherits billing assignment permissions for all billing accounts owned by the organization.
- CGrant the service account the Owner (`roles/owner`) role on the Organization node so that billing management capabilities inherit downward through the resource hierarchy.
- DConfigure an Organization Policy constraint on the `Engineering` folder that enables billing account association for the service account identity.
Cevap
Grant the service account the Billing Account User (`roles/billing.user`) role directly on Billing Account `01A2B3-456C78-9DEF01`.
To link a Google Cloud project to a billing account, an identity must hold specific permissions on both target resources: Project Creator (or Project Owner/Editor) on the parent folder or project, and Billing Account User (`roles/billing.user`) on the specific billing account. Granting `roles/billing.user` directly on the billing account fulfills the least privilege principle while enabling the required association capability.
Adım Adım Çözüm
Anahtar Kavram
Dual-permission requirement for GCP Billing Account linking across the Resource Hierarchy