Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am trying to give Project Creator role to a service account from IAM in GCP

I am trying to give Project Creator role to a service account from IAM, I do not see a role named Project Creator as explained here https://cloud.google.com/iam/docs/understanding-roles#resource-manager-roles

I am not getting Project creator as a role in Service Account Role

like image 916
Ashish Raj Srivastava Avatar asked Jan 26 '23 14:01

Ashish Raj Srivastava


2 Answers

Its roles/resourcemanager.projectCreator and lowest resource hierarchy where it can be given is Folder. So if you have a Folder then create an IAM role at Folder level(you need to have permissions at Folder level) or else create at Org level(again, you need to have org level perms).

Ref: https://cloud.google.com/iam/docs/understanding-roles#resource-manager-roles

roles/
resourcemanager.projectCreator  Project Creator     Provides access to create new projects. Once a user creates a project, they're automatically granted the owner role for that project.   resourcemanager.organizations.get
resourcemanager.projects.create
    Folder ```


Hope this helps
like image 174
pradeep Avatar answered Jan 28 '23 05:01

pradeep


If you do not see the project creator role in IAM, you will have to contact the Organization admin who should have the ability to add that particular role.

like image 30
dany L Avatar answered Jan 28 '23 05:01

dany L