title: Getting a list of members from google apps domain group
body: <p>I have a none google apps admin account (regular user) that I want to run a google app script that pulls the member list of a google group. The way I'm currently going about it is to use the AdminSDK but don't know how to authorize this regular user to pull the group members list.</p>
  
  <p>Not surprisingly when I run:</p>
  
  <pre><code>    var listOfUsers = AdminDirectory.Members.list(groupname);
    Logger.log(listOfUsers);
  </code></pre>
  
  <p>I receive the "Not Authorized to access this resource/api".</p>
  
  <p>I'm figuring I need to use oauth2.0 but I can't find any google app script implementations to look at. Also I've created an API project in the developer console but am unsure if I have the correct settings/permission for this regular user to use the API.</p>
  
  <p>Can anyone point me on how to implement oauth2.0 or preferably a code snippet of how its done in google app script? And what settings do I need to enable in the API project in google developer console for this user to have access to group information?</p>