Google Apps脚本无法从托管的GAS转换为特定的Cloud Project [英] Google Apps Script cannot convert from GAS managed to specific Cloud Project

查看:45
本文介绍了Google Apps脚本无法从托管的GAS转换为特定的Cloud Project的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由GAS管理的项目,我想将其转换为特定的Google标准云项目.我有身份证我在资源/云托管项目"中输入它,然后得到:-该项目不存在,或者您需要对其进行编辑访问."

I have a GAS managed project which i want to convert to a specific google standard cloud project. I have the ID. I enter it in Resources/Cloud Managed Project and i get :- "Project does not exist or you need edit access to it."

它确实存在,我拥有所有者的权限.

It does exist and i have permissions as I am the owner.

推荐答案

该错误在某种程度上具有误导性,我花了一段时间才弄清楚发生了什么,但是问题是,当您替换默认的应用脚本托管"项目,如果您不是该项目的所有者,则无法删除该项目并设置新项目;因此,此错误消息不是指新创建的云项目,该项目确实存在并且您是该所有者的所有者,而是指自动创建的应用程序脚本托管的项目.

The error is somewhat misleading and it took me a while to figure out what was going on, but the issue is that when you're replacing the default "App Script managed" project, if you're not the owner of that project, then you can't delete it and set a new project; so this error message isn't referring to the newly created cloud project, which does exist and which you are the owner of, it's referring to the automatically created apps script managed project.

这意味着您只能在您拥有电子表格的电子表格上打开脚本编辑器时才能设置新项目.

What this means is that you can only set a new project when you open the script editor on a spreadsheet you're the owner of (I guess).

对我来说,当我转到脚本编辑器中的文件"菜单以选择删除项目"时,我首先意识到了这一点,即使我是原始电子表格的编辑器,也发现它不存在.直到我以该电子表格的所有者身份登录后,我才能看到删除项目".

For me I first realised this when I went to the "File" menu in the script editor to choose "Delete Project" and saw that it didn't exist, even though I was an editor of the original spreadsheet. It wasn't until I was logged in as the owner of that spreadsheet that I could see "Delete project".

即使我删除了项目,然后又从另一个文件所有者那里打开并打开了脚本编辑器,我仍然没有删除项目"选项,并且我也仍然无法设置项目号.

Even when I deleted the project, and then went and opened the script editor first from the other file owner, I still didn't have the Delete Project option, and I also still couldn't set the project number.

我最终要做的是:

假设A是脚本的原始所有者,而B是脚本的编辑者,也是新云平台项目的所有者.

Assume A is the original owner of the script, and B is an editor of the script, and also the owner of the new cloud platform project.

1)从云平台项目中,以B身份登录,将A添加为项目所有者

1) From the cloud platform project, logged in as B, add A as an owner of the project

2)在以A身份登录的脚本编辑器中,将云平台项目设置为项目编号

2) From the Script editor logged in as A, set the cloud platform project to the project number

3)在A上配置oauth同意屏幕

3) Configure the oauth consent screen from A

现在,项目编号已被替换,Apps Script管理的项目被删除,并且帐户B拥有云平台项目,即使它们不是脚本的所有者.

Now the project number has been replaced, the Apps Script managed project is deleted, and account B owns the cloud platform project even though they are not the owner of the script.

这篇关于Google Apps脚本无法从托管的GAS转换为特定的Cloud Project的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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