Getting a list of all project owners from GCP | C2C Community
Solved

Getting a list of all project owners from GCP

  • 9 January 2022
  • 1 reply
  • 1040 views

Userlevel 1

like this- how can list out all project owner details in csv file.

icon

Best answer by boredabdel 9 January 2022, 11:00

View original

1 reply

Userlevel 2
Badge

You can use gcloud for that, something like 

 

gcloud projects get-iam-policy PROJECT_ID --flatten=bindings --filter=bindings.role:roles/owner --format='value(bindings.members)'

 

Should return a comma-separated list of owners

Reply