title: How to retrieve groups and members data from G Suite Hosted Domain
body: <p>I successfully implemented <a href="https://developers.google.com/identity/sign-in/web/sign-in" rel="nofollow noreferrer">Google Sign-in button </a> where I log in using Gmail accounts from a hosted domain (HD) of mine: with Javascript I retrieve user's data, but the only infos about his/her HD is just the name (by using <code>getHostedDomain()</code>).</p>
  
  <p>So I made a Service Account in order to get more infos about my HD (using Python API): by using HD name, I retrieve groups and members of the HD.</p>
  
  <p>So far so good, but the process of information collection is not one: it is splitted in two different files executed at different times. For now, I sign-in with a Gmail account on a web page and I take note of the HD returned to which the logged user belongs; then I run my Python script in a terminal that examines the given HD name in order to retrieve groups and members.</p>
  
  <p>I'm trying to implement a single execution collector where only a file is executed and possibly only one language is used: the web page is the file I cannot give up since I'd like to offer Google Sign-in, so I'm trying to access other HD infos (besides its name) from the web page with Javascript, without using my other Python script.</p>
  
  <p>Is it possible to retrieve everything only using Javascript?</p>