Skip to content
Query GSuite directory through AWS Lambda
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

AWS Lambda GSuite Directory User Query

This little Golang microservice queries GSuite Directory with Domain-Wide Delegation of Authority:

Steps to perform in Google

  1. Create an app in to attach a service account
  2. Enable Admin SDK api in your new application (
  3. Create a service account in your newly created application
  4. Delegate domain-wide authority to your service account with scope "" at

Steps to perform in AWS

  2. Build the query-user.go executable
  3. Zip it
  4. Create your lambda function
  5. Setup environment variables:
    • gsuite_credentials: the value is the JSON downloaded in the step 2 from Google console (service account)
    • impersonatedUser: user to impersonate
You can’t perform that action at this time.