Search code examples
google-apps-scriptgoogle-apigoogle-appsgoogle-directory-api

Retrieve the list of users in a Google Apps Domain with a non-admin account


Is it possible to retrieve the list of users in a Google Apps Domain with a non-admin account?


Solution

  • Non-admin users can call users.list(viewType=domain_public) which offers the same amount of details that the users see in the domain contacts directory.