Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 如何使用应用程序脚本修改页面级权限?_Google Apps Script_Google Sites - Fatal编程技术网

Google apps script 如何使用应用程序脚本修改页面级权限?

Google apps script 如何使用应用程序脚本修改页面级权限?,google-apps-script,google-sites,Google Apps Script,Google Sites,我有一个设置了页面级权限的网站。每个页面都继承自父页面,但随后会在某一点停止。满足要求后,我希望允许访问子页面 API具有站点级访问权限,例如 site.addViewer(viewer) site.removeViewer(viewer) site.addCollaborator(collaborator) site.getCollaborators() site.removeCollaborator(collaborator) 但在页面级别,我只看到 pag

我有一个设置了页面级权限的网站。每个页面都继承自父页面,但随后会在某一点停止。满足要求后,我希望允许访问子页面

API具有站点级访问权限,例如

site.addViewer(viewer)   
site.removeViewer(viewer)    
site.addCollaborator(collaborator)    
site.getCollaborators()    
site.removeCollaborator(collaborator) 
但在页面级别,我只看到

page.getAuthors
(我假设与合作者相同,但看不到更改名称的原因?)


是否可以从站点中的脚本更改页面级权限?

似乎不可能。表示他们正在处理它。但是这个问题是在一年前产生的,所以我不确定它的状态…

通常应用程序脚本API落后于谷歌API和其他功能。这也是一个这样的例子。页面级权限在谷歌网站中相对较新,应用程序脚本还没来得及跟上。