Automatic/Programmatically enable Apps Scripts Addon's on Google Docs

坚强是说给别人听的谎言 提交于 2019-12-12 04:36:01

问题


I'm searching for this like crazy and I just can't find a answer.

Imagine this. I have a "master" account. Using the Docs API I will grant access to users to some documents. But I need my addon enabled in every file. The users that will have access to the documents are not under my organization G Suite or anything. They are random gmail users.

Is there any way to do it? (besides of doing it manually) I couldn't find it in the documentation.


回答1:


It's not possible to disable an add-on, but an alternate solution is to create a service model inside your add-on. Maintain a DB of users that have installed your add-on, using this you can develop a logic which user is allowed to use an add-on.

This is by far the best solution I can think of.



来源:https://stackoverflow.com/questions/44370341/automatic-programmatically-enable-apps-scripts-addons-on-google-docs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!