Determine G-Suite Edition

2019-06-09 20:09发布

问题:

I would like to have different pricing and licensing options for a Drive enabled app I am developing, based on the G-Suite edition that the user's account is provisioned with.

What API do I use to determine the Edition used for the currently logged in user?

Also, what is the recommended practice (or options) for who maintains my app's billing with business/enterprise? Can I determine if the user is a system admin and then show only them the billing/invoice sections of my app?