Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get google account owner from Google Project ID

Is it possible to get Google Account Email from the API Project ID? We are using the project id in one of our projects but I am not able to remember the account it was created with?

like image 444
Kaushal Panjwani Avatar asked Aug 23 '16 06:08

Kaushal Panjwani


People also ask

How do I find the owner of the GCP project?

To confirm who owns the project, go to the Google Cloud Platform Console, open the console left side menu, and click IAM & Admin. Ensure that a project is selected to see the project owner.

What is Google project ID?

Project ID: A globally unique identifier for your project. A project ID is a unique string used to differentiate your project from all others in Google Cloud. You can use the Google Cloud console to generate a project ID, or you can choose your own.

How do I find Google project ID?

To locate your project ID: Go to the API Console. From the projects list, select Manage all projects. The names and IDs for all the projects you're a member of are displayed.


1 Answers

Try using the IAM commands in the Cloud SDK to see who currently is listed as a user/owner:

gcloud projects get-iam-policy <your-project-id>

That will return a list of current project members. It may not be the original owner, but this will let you know who all has access :)

Hope this helps!

like image 62
Justin Beckwith Avatar answered Sep 30 '22 17:09

Justin Beckwith