[英]Issues with getRoot Google Apps Script
I am having problems deploying a script as a web app. 我在将脚本部署为Web应用程序时遇到问题。 Here is the extremely simplified version of what I want to accomplish.
这是我要完成的工作的极其简化的版本。
function doGet (e) {
var userRoot = DocsList.getRootFolder();
var myTftUnits = DocsList.getFolderById('folderId');
myTftUnits.addToFolder(userRoot);
}
I have the permissions set to run as the user and it is available to eveyone in my domain. 我已将权限设置为以用户身份运行,并且可以在我的域中供eveyone使用。 I basically want the function to write a shared folder to the user's root folder.
我基本上希望该功能将共享文件夹写入用户的根文件夹。 However, I keep getting the error:
但是,我不断收到错误:
You do not have permission to perform that action.
您无权执行该操作。
However, the files are shared (as editors) and yet I still get the error. 但是,文件是共享的(作为编辑器),但是仍然出现错误。 Could someone please shed some light on this?
有人可以说明一下吗?
It may not be possible for a user to share their entire drive with another user. 用户可能无法与另一个用户共享他们的整个驱动器。 Instead you'll need to share specific files or folders.
相反,您需要共享特定的文件或文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.