Setting ACL to "Anyone with the link" via the API

200 views
Skip to first unread message

Andrew Fields

unread,
Jun 29, 2011, 9:44:40 PM6/29/11
to google-docum...@googlegroups.com
Is there a way to set the ACL on an Google Docs item to "Anyone with link" using the API?

Users can do it via the web interface.

There is an old forum question here:
but there seems no way of getting the required key via the API.

Andrew Fields

unread,
Jul 3, 2011, 5:13:40 AM7/3/11
to google-docum...@googlegroups.com
I see there is a Google announcement that "Authkey is going away".

How do we share to "Anyone with the link" in future?

Dan Lines

unread,
Jul 5, 2011, 5:49:39 PM7/5/11
to google-docum...@googlegroups.com
I have this same issue.  I cannot set a document to have the sharing option Anyone with the link.  I also cannot remove the sharing option Anyone with a link.

Has anyone had success with this?


- Dan

Andrew Fields

unread,
Jul 6, 2011, 5:55:43 AM7/6/11
to google-docum...@googlegroups.com
No, I can't remove them either, or create them. The old forum question was not answered.

It seems that the web interface can do things (requireskey JSON) that aren't yet documented or available in the public API outside of Google. 

This is annoying, as most of our users use both our app and the web interface.

Is there anyone from Google who can comment on this:
Is there stuff we can't do via what's described in the protocol guide, that is known inside Google, or have we just not read the manual properly?

-Andrew

Andrew Fields

unread,
Jul 8, 2011, 8:12:02 AM7/8/11
to google-docum...@googlegroups.com
I haven't seen anything - perhaps a Google engineer can tell us how, or even if it is not possible?

Ivan Lee

unread,
Jul 8, 2011, 10:56:48 AM7/8/11
to Google Documents List API

Andrew Fields

unread,
Jul 8, 2011, 11:45:40 PM7/8/11
to google-docum...@googlegroups.com
A big "thank you", Ivan. Your trick works.

L. G.

unread,
Jul 29, 2011, 6:06:11 AM7/29/11
to google-docum...@googlegroups.com
Does anyone know how to retrieve the public link for a particular DocumentListEntry , which contains "?authkey=XXX parameter" ? (which could be opened on every web browser without auth)

entry.getDocumentLinl() seems not to work
Thanks you very much !

Vic Fryzel

unread,
Aug 3, 2011, 6:42:45 AM8/3/11
to google-docum...@googlegroups.com
The link is the alternate link + '?authkey=' + key.

-Vic
Reply all
Reply to author
Forward
0 new messages