简体   繁体   English

如何删除“其他用户”可安装触发器?

[英]How to remove "other user" installable trigger?

Is there anyway to delete "other user" installable triggers?无论如何删除“其他用户”可安装触发器? Being lucky enough to guess which user to delete only shows their trigger as disabled but still requires you log in their gmail to delete it which is kind of concerning when you are the "owner" of the spreadsheet?幸运地猜出要删除哪个用户只会显示他们的触发器已禁用,但仍然需要您登录他们的 gmail 才能删除它,这在您是电子表格的“所有者”时有点令人担忧?

There is no way to remove other users triggers.无法删除其他用户触发器。

Triggers are associated with the Apps Script project, not to the Spreadsheet file.触发器与 Apps 脚本项目相关联,而不是与电子表格文件相关联。

Users are able to create Apps Script Projects on any spreadsheets they have Edit access to.用户可以在他们拥有编辑权限的任何电子表格上创建 Apps 脚本项目。

If you do not want users creating Apps Script Projects on your spreadsheets, give them Read-Only Access.如果您不希望用户在您的电子表格上创建 Apps 脚本项目,请授予他们只读访问权限。

The spreadsheets that already have other users triggers on them can only be "purged" by removing access.已经有其他用户触发器的电子表格只能通过删除访问权限来“清除”。

You can't delete other user's trigger.您不能删除其他用户的触发器。 A trigger to a script is associated with a user's Google account (and the script project).脚本触发器与用户的 Google 帐户(和脚本项目)相关联。

What they do with their trigger is their own business.他们用触发器做什么是他们自己的事。 As the owner, you can decide if a user has the privilege to edit/view your spreadsheet.作为所有者,您可以决定用户是否有权编辑/查看您的电子表格。 If a user has been provided with edit access, He can choose to use that privilege any way he sees fit.如果已为用户提供了编辑权限,他可以选择以任何他认为合适的方式使用该权限。 For example, He can choose to respond to any edit made to the sheet manually or programmatically through a script at his disposal.例如,他可以选择手动或通过他可以使用的脚本以编程方式响应对工作表所做的任何编辑。

If you want to know who made a particular edit, you can see the edit history of each cell.如果您想知道谁进行了特定编辑,您可以查看每个单元格的编辑历史记录。

You can permanently delete a script with all of its installable triggers after making a clean copy of it.在制作一个干净的副本后,您可以永久删除一个脚本及其所有可安装的触发器。

  1. Go to the Overview section in the new Apps Script editor.转到新 Apps 脚本编辑器中的概览部分。
  2. Click the 'Make a copy' button.单击“制作副本”按钮。
  3. A new browser tab will be created with the new script on screen, then click the 'Delete project' button in the old script.将使用屏幕上的新脚本创建一个新的浏览器选项卡,然后单击旧脚本中的“删除项目”按钮。

You can now add the triggers you need manually or by code.您现在可以手动或通过代码添加所需的触发器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM