6

In GCP, any user is able to create a project. An organisation may end up having a lot of projects in its hierarchy.

How to we disable all the users from being able to create projects, and only allow a few authorized to do so?

0

2 Answers 2

15

Permissions are inherited from the top, in this case from the organization:

By default, when the organization is created your entire domain is granted Project Creator and Billing Account Creator IAM roles at the organization level. This ensures that users in your domain will be able to continue creating projects as they did before and no disruption occurs.

The Organization Administrator will decide when they want to start actively using the organization. They can then change the default permissions and enforce more restrictive policies as needed.

In Using Resource Hierarchy for Access Control there's a gem at the very bottom:

If you want to limit project creation in your Organization, change the Organization access policy to grant the Project Creator role to a group that you manage.

Specifically, the role you want to disinherit is roles/resourcemanager.projectCreator:

Provides access to create new projects. Once a user creates a project, they're automatically granted the owner role for that project.

1
  • 1
    no idea why is this not by default... for these who are new to GCP and still can't figure out. 1) go to org IAM 2) edit role of org member and remove Project Creator role
    – confiq
    Aug 10, 2021 at 16:15
2

I know this post is pretty old already, but the issue is still a valid one. To fix this in your GCP Org:

  1. Select the Org in the console
  2. Go to IAM & Admin > Manage Resources
  3. Select the Org
  4. Under Permissions, type "creator" to filter all other roles. You'll be left with "Billing account creator" and "Project Creator"
  5. For both of these, make sure you have and are signed in as a principal that has these roles (in my example I have groups for "gcp-billing-admins@..." and "gcp-organization-admins@..."
  6. You may see the Org icon and org name under each of these roles. Delete the org from each

Screenshot:enter image description here

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.