title: List all users in a project in Google Cloud using Python API
body: <p>I am trying to list all users with their access levels, in a project in Google Cloud.</p>
  
  <p>I am able to do so using Command Prompt command, 
  <code>gcloud projects get-iam-policy MY_PROJECT</code></p>
  
  <p>However, while I try doing it using <a href="https://cloud.google.com/iam/reference/rest/v1/projects.roles/list" rel="nofollow noreferrer">API</a>, I get <code>{}</code> as response body.</p>
  
  <p>Any reason why? Or, is there some other way?</p>
  
  <p>TIA</p>