Reputation: 22546
I have a GSuite add-on that I would like to publish only on the domains of my customers (who have GSuite accounts). From what I understand of the G Suite Marketplace:
What would be the solution for this use case?
Upvotes: 2
Views: 477
Reputation: 38469
AFAIK there is no official guide to publish and add-on for limited number of external domains.
While some services have a whitelist, this is not the case for G Suite Marketplace Add-ons and Editor Add-ons as of August 6, 2020.
So you will have to think that your add-on could be installed by anyone with a Google account but you could set something to limit it use.
Some alternatives:
G Suite add-on
G Suite Editor Add-on
Maybe the simpler solution will be to use the script properties to set a list of valid domains. To do this you could use Session.getActiveUser().getEmail()
/ Session.getEffectiveUser().getEmail()
then something to get the user domain and compare it with your add-on's whitelist.
References
Upvotes: 2