google-admin-sdkgoogle-reseller-api

Admin SDK Customer Report API - how to specify a customer domain (as a reseller)


I read that the Admin SDK works for Google Apps resellers, but I'm having one specific problem.

I want to use the following request to get the number of user licenses in use on one of my customer's domains.

https://www.googleapis.com/admin/reports/v1/usage/dates/%s?parameters=accounts:num_users

But there's no way that I can find to specify the customer's domain name that I want to get the usage report for. Tried a few different ways.

There must be a way that is hiding from me because this was possible with the old deprecated API.

Thanks.


Solution

  • Looks like this API here will do the trick: https://developers.google.com/admin-sdk/admin-settings/#retrieving_the_current_number_of_users_in_a_domain