Search code examples
javascriptgoogle-docs-apigoogle-apps-script

Modify File sharing settings using Google Apps Script DocsList Service?


I have a requirement to change the sharing settings on a number of files hosted in Google Docs. I know that I can use DocsList Services with Google Apps Script if I want to add or remove Editors or Viewers from a file using calls like this:

var file = DocsList.createFile("My File", "ABC");
file.addEditor("MyUserName");

What I am looking for is a function that I can call that will allow me to change the overall sharing setting of the file from "Private" to "Anyone with a link". Does such a function exist anywhere? Thanks!


Solution

  • Afraid not. You are welcome to request this as a requested new feature enhancement in the Issue Tracker.

    http://code.google.com/p/google-apps-script-issues/issues/list