title: Google cloud: How to list all service-accounts from all Projects in GCP
body: <p>I have requirement to get all the properties of a service account in google cloud. is it possible to list all the properties something like Select *.</p>
  <p>otherwise i need the following information:</p>
  <ul>
  <li>SA account name</li>
  <li>Email address</li>
  <li>Iam Role assigned</li>
  <li>User managed Keys (if any)</li>
  <li>account creation date</li>
  <li>last used /authentication time.</li>
  <li>Project name</li>
  <li>account status (enable / disable)</li>
  </ul>
  <p>I can get all the projects then all the service accounts in it but i dont know how to get all other values.</p>
  <pre><code>foreach ($project in gcloud projects list --format=&quot;value(projectId)&quot;)
  {
    Write-Host &quot;ProjectId: $project&quot;
    foreach ($robot in  gcloud iam service-accounts list --project $project --format=&quot;value(email)&quot;)
    {
       Write-Host &quot;    -&gt; Robot $robot&quot;
     
    }
  }
  </code></pre>