如何修改其他人分享给我的文件,如电子表格?

问题描述:

我与谷歌的脚本工作,我用:如何修改其他人分享给我的文件,如电子表格?

var file = DocsList.getFileById('XXXXXXXXXX'); 

但是当我运行该脚本,我得到这个错误:

"No item with the given ID could be found, or you do not have permission to access it."

我检查什么样的权限的电子表格的所有者给予我,我可以编辑它。

谢谢。

文档是否由域中的用户拥有? (Google Apps for Business,教育等)?如果是这样,管理员控制可能会阻止策略访问脚本。与Unable to make a copy of a doc even with the right ID类似。