Is it possible to get only Super administrators from GApps(all domains) under reseller,using reseller account

58 views Asked by At

I have a list of domains of all my gapps customers.I want to get only users who have super admin privilege for all those domains.I can fetch all users for the domain and iterate over them and filter out only supers admins. But it will be a lot of api calls.

There has to be another way....

Thanks.

1

There are 1 answers

1
Shashwat Kumar On BEST ANSWER

Both information list of all domains and list of users under a domain are not possible is one API Call. You have to make a list of domains call then make each call for a domain and get the list of users as you have mentioned been doing. However, you can avoid getting all users and get only admin users instead. There is a parameter in API call as query where you can mention isAdmin=true to get only super Admins.

But Google provides batch request to combine multiple API calls in one request which you can readily use to fulfill your purpose.