The follow steps describe how to assign the service account created in Preparing for automation (Part 1 - Developers Console) to the domain:

  • Logon to the Google Admin console as an administrator
    https://admin.google.com/

  • Go to Security > API Reference

  • Ensure that Enable API Access is ticked



  • Go to Security > Advanced settings > Manage API client access


  • Enter the Client ID stored from the previous step in the Client ID field


  • Enter the following in the One or More API Scopes field.
    https://www.googleapis.com/auth/admin.directory.group, https://www.googleapis.com/auth/admin.directory.user

  • Click Authorize