A department lead needs to delegate project creation rights to a team of developers. The developers must be allowed to create new Google Cloud projects within a designated folder named `Department-Dev` and link those newly created projects to the company's central billing account. However, they should not be able to create projects anywhere else in the organization or alter billing account settings. Following the principle of least privilege, which combination of IAM role assignments should be configured?
- Grant Project Creator (roles/resourcemanager.projectCreator) on the Department-Dev folder, and Billing Account User (roles/billing.user) on the central billing account.Answer
- BGrant Project Creator (roles/resourcemanager.projectCreator) on the Organization node, and Billing Account User (roles/billing.user) on the Department-Dev folder.
- CGrant Editor (roles/editor) on the Department-Dev folder only.
- DGrant Project Creator (roles/resourcemanager.projectCreator) on the Department-Dev folder only.
Answer
Grant Project Creator (roles/resourcemanager.projectCreator) on the Department-Dev folder, and Billing Account User (roles/billing.user) on the central billing account.
To create projects inside a specific folder and link them to a billing account under the principle of least privilege, a user requires `roles/resourcemanager.projectCreator` scoped to that target folder, as well as `roles/billing.user` scoped to the target Billing Account.
Step-by-Step Solution
Key Concept
Folder-Scoped Project Creation and Billing Account IAM Scoping