Configuration to Query Users from a Google Apps domain
In order to be able to query Google Apps domain users, you must enable API access:
- An administrator of a Google Apps domain needs to login to the Google Apps Admin console, then select Security.
- Check Enable API access.
Additional Resources: Google Apps Admin SDK