title: How to get the active authenticated gcloud account?
body: <p>Using <code>gcloud auth ...</code> you can add or remove accounts used during the <code>gcloud</code> commands.</p>
  
  <p>Is there a way to get the active account without <code>grep</code>-ing and <code>awk</code>-ing?</p>
  
  <p><code>gcloud auth list</code> is good for humans but not good enough to a machine. I want a cleaner solution.</p>
  
  <p><code>gcloud config list account</code> also shows me to verbose output:</p>
  
  <pre><code>Your active configuration is: [default]
  
  [core]
  account = service@&lt;my_project&gt;.iam.gserviceaccount.com
  </code></pre>