0

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.

artooro
  • 1,479
  • 1
  • 8
  • 20

2 Answers2

0

Using the Reports API for this is not advisable because it can be delayed by 48+ hours. It's also not possible for reseller users to run reports for customers at this time. Rather, you should use the Google Apps Reseller API to list subscription counts that should be fully up to date.

Jay Lee
  • 13,415
  • 3
  • 28
  • 59
  • Hi Jay, the problem with using the Apps Reseller API is that the subscription object does not give you the number of seats in use for FLEXIBLE subscriptions which is what I need to do here. "flexible plan — For this plan, a reseller is invoiced on the actual number of users which is capped by the maximumNumberOfSeats. The numberOfSeats property is not used in the request or response for flexible plan customers." So I'm not sure the proper way to find out the numberOfSeats. In the past I used the old deprecated API. – artooro Nov 03 '13 at 01:11
0

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

artooro
  • 1,479
  • 1
  • 8
  • 20