Enable Ability to Query Users from a Google Apps Domain

In order to query Google Apps domain users, you must enable API access.

You must be a Google Apps domain administrator to make these changes.

  1. Log in to the Google Apps Admin console, and select Security.

Google Admin Console

  1. Check Enable API access.

Google Apps API Reference

Keep reading