Does it possible to share my domain addon client for specific users?

34 views
Skip to first unread message

Alex

unread,
Apr 16, 2021, 10:26:11 AM4/16/21
to Google Apps Script Community
Briefly, I have a domain addon and it's cool (as always). And when my users share a Sheet with non-domain users then they see my addon.

Like this

1618582922801.png

But a non-domain user can't auth the client app 

1618583115279.png

I would like to share my domain addon client app for specific users if it's possible.

Alex

unread,
Apr 16, 2021, 10:27:30 AM4/16/21
to Google Apps Script Community
You can open the images in new tab for fill view.

Alan Wells

unread,
Apr 16, 2021, 10:44:06 AM4/16/21
to Google Apps Script Community
The publication for an add-on can't be changed from Private to Public, I believe.
And there is no "built-in" way to have some kind of hybrid combination between Private and Public.
I'm guessing that you'd need to publish a new add-on as Public, and then require each non-domain user to sign up and be approved for access,
probably something like a paid add-on would work.
Your code could check the effective user for the correct domain part of the email address before running and reject all non-domain users unless they
are in the approved list.
You'd need to maintain a "Customer List" of approved accounts.
Actually, you'd probably want to publish as Public but Unlisted in order to avoid having it visible to the whole world on the Marketplace.

Alex

unread,
Apr 16, 2021, 11:40:55 PM4/16/21
to Google Apps Script Community
Hi Alan!

Thank you! That is my the second plan. I just thought can I as a domain admin add some rules via GCP?

I'm still convinced that yours variant is better. At least it exists =)

Alan Wells

unread,
Apr 17, 2021, 9:24:06 AM4/17/21
to Google Apps Script Community
There is an admin setting to allow domain users to install add-ons from outside the domain,
but you want the opposite.
I really don't know that much about the domain admin settings, so I can't definitely state something about that.
So, if someone with good knowledge about that has a suggestion.

Reply all
Reply to author
Forward
0 new messages