[英]Publish add-on on GSuite marketplace in “unlisted” mode
I have a GSuite add-on that I would like to publish only on the domains of my customers (who have GSuite accounts).我有一个 GSuite 插件,我只想在我的客户(拥有 GSuite 帐户)的域上发布。 From what I understand of the G Suite Marketplace:
根据我对 G Suite Marketplace 的了解:
What would be the solution for this use case?这个用例的解决方案是什么?
AFAIK there is no official guide to publish and add-on for limited number of external domains. AFAIK 没有官方指南来发布和附加有限数量的外部域。
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.虽然某些服务有白名单,但自 2020 年 8 月 6 日起,G Suite Marketplace 插件和编辑器插件就不属于这种情况。
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.因此,您将不得不认为任何拥有 Google 帐户的人都可以安装您的插件,但您可以设置一些东西来限制它的使用。
Some alternatives:一些替代方案:
G Suite add-on G Suite 插件
G Suite Editor Add-on G Suite 编辑器插件
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.为此,您可以使用
Session.getActiveUser().getEmail()
/ Session.getEffectiveUser().getEmail()
然后获取用户域并将其与附加组件的白名单进行比较。
References参考
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.