how can i fetch list of all google workspace users

Hey, 

I want to fetch a list of all google workspace users using a service account using a API call or postman.

Can you please give me the instructions on how to do it? Thank you

0 3 335
3 REPLIES 3

You can do this with the free, open source, command-line, indispensable GAM tool. Check out:

for more details.

Specifically, the command would be gam print users

And, since GAM is open-source, you can have a look in its code to see exactly how it's done.

Hope that helps,

Ian

From where can i give the service account scopes/permissions to call the google Admin/some other services API

Youโ€™d set which APIs are active and access permissions via your project in the Google Cloud Console. Thereโ€™s a good guide at https://developers.google.com/workspace/guides/get-started

Top Solution Authors