拥有脚本所有权转移的Google表单仍以旧用户身份运行脚本 [英] Google Forms with script transfer of ownership still runs script as previous user

查看:73
本文介绍了拥有脚本所有权转移的Google表单仍以旧用户身份运行脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在电子表格中制​​作了一个Google脚本,该脚本会响应表单提交.它修改文件,制作pdf文件,并将该pdf文件通过电子邮件发送给特定的人.这是为别人做的,然后我转让了所有权.但是,对这些文件和发送的电子邮件所做的修改仍显示在我的电子邮件下面.如何将文件夹及其中的所有内容完全转移到同一域中的不同用户,以便它们成为发送电子邮件和修改文件的文件夹?

I made a google script in a spreadsheet that responds on form submit. It modifies the files, makes a pdf and emails that pdf to specific people. This was made for someone else and then I transferred ownership. However, the edits to those files and emails sent, still appear under my email. How do I completely transfer the folders and everything in them a different user on the same domain so that they are the ones sending emails and modifying files?

推荐答案

如何完全转移文件夹以及其中的所有内容,并将其转移到同一域中的其他用户

How do I completely transfer the folders and everything in them a different user on the same domain

当您转让文件所有权时,文件夹,所有其中都被转移了.

When you transferred ownership of your files & folders, everything in them did get transferred.

...使他们成为发送电子邮件和修改文件的人?

... so that they are the ones sending emails and modifying files?

但是,您之前设置的TRIGGERS属于您的帐户,而不是关联的脚本.

However, the TRIGGERS that you had set up previously belong to your account, not to the associated scripts.

您有几种选择可以阻止这些触发器在您运行时运行.

You have a couple of options for stopping those triggers from running as you.

  1. 禁用特定的可安装触发器.

  1. Disable specific installable triggers.

如果您仍然有权访问有问题的脚本,请在脚本编辑器中将其打开,转到resources > Current project's triggers,然后禁用触发器.完成.

If you still have access to the offending script, open it in script editor, go to resources > Current project's triggers, and disable the triggers. Done.

如果您不再有权访问脚本,请在任何脚本上打开脚本编辑器,转到resources > All your triggers,并在可以识别触发器的情况下将其禁用.如果您在多个脚本中为触发器函数使用相同的名称,那么这可能会具有挑战性,因为此处没有指示它们来自哪个脚本的信息.

If you don't have access to the script anymore, open the script editor on any of your scripts, go to resources > All your triggers, and disable the triggers if you can identify them. This can be challenging if you use the same names for trigger functions in multiple scripts, as there is no indication here of which script they came from.

取消对有问题的脚本的授权.

De-authorize the offending script.

如Zig的答案所述,如果您仍然有权访问有问题的脚本,则可以添加一个功能来撤消授权,然后从您的帐户 运行它.

As Zig's answer describes, if you still have access to the offending script, you can add a function to revoke authorization, and run it from your account.

或者,您可以查看已授权的所有脚本,并直接撤消访问权限.转到您的帐户设置页面,然后在已连接的应用和服务下选择查看全部",或使用此链接.

Alternatively, you can see all scripts that you have authorized, and revoke access directly. Go to your Account Settings page, and select "View all" under Connected apps and services, or use this link.

选择有问题的脚本,然后单击撤消访问权限".完成!

Select the offending script, then click "Revoke access". Done!

要使脚本在新所有者的帐户下运行,您需要重复为您设置的所有步骤,包括从其帐户获得授权.

To get the script running under the new owner's account, you need to repeat whatever steps set it up for you, including authorization from their account.

这篇关于拥有脚本所有权转移的Google表单仍以旧用户身份运行脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆