title: How do I get the organization ID of my current project in Google Cloud Platform?
body: <p>I would like to know the organization ID of my current project in GCP.</p>
  
  <p><code>gcloud projects describe PROJECT_ID</code> will show the <code>parent</code> which can be the organization, but if the parent is a <code>folder</code>, the organization ID does not appear. </p>
  
  <p>I could recurse up the parent hierarchy of the folders using <code>gcloud resource-manager folders describe FOLDER_ID</code>, but that is a hassle. It is also impossible if I do not have organization-level permissions.</p>
  
  <p>Yet I do have access to organization IDs: <code>gcloud organizations list</code> shows several organizations, though not their mapping to projects.</p>
  
  <p>How can I achieve this?</p>