Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to let anonymous users edit a Google Drive Realtime document?

I want to create a web page that uses Google Drive Realtime API that allows users to anonymously edit several text fields. Because more than one user may be accessing the page simultaneously, I want to prevent someone's edit from being overwritten by another user without the first editor knowing that his edit is overwritten.

However, from the quick start, it seems that authorization using Google Account is needed for people to start editing. Is it possible to let arbritrary user edit my realtime model, without the need of logging in? Something similar to letting a Google Docs Spreadsheet be edited by the public.

like image 234
Randy Sugianto 'Yuku' Avatar asked May 20 '13 04:05

Randy Sugianto 'Yuku'


People also ask

Can people edit Google Docs anonymously?

Google Docs keeps a history of all edits made to a document. But when users edit the document through public sharing, their identity remains anonymous, regardless of whether they've signed in to their Google Account or not.

How do I make an anonymous Google Doc Editor?

In the Share with people and groups window, press the Change to anyone with a link option at the bottom. At this point, anonymous users will be able to view your document when you save your changes. To allow users to edit the document anonymously, change Viewer to Editor in the drop-down menu.

Can more than one person edit a document in Google Drive at the same time?

How many people can edit a Google Docs file simultaneously? Well, with documents and presentations, up to 10 people can work on the file at the same time. Up to 50 people can edit a Google Docs spreadsheet together. And Google Docs allows up to 200 simultaneous viewers of any type of Google Docs file.


2 Answers

Right now only psuedo-anonymous mode is available. You can make files available publicly, or to anyone with a link. However, the user will need to log in with a Google account in order to edit.

They appear as an anonymous user to the other users in the document. This is where isAnonymous is currently used.

like image 76
Cheryl Simon Avatar answered Oct 31 '22 04:10

Cheryl Simon


I have confirmed that this is possible. Right click the document in Google Drive, and click Share... In the dialog that opens, click the drop down and select Anyone with the link can edit. Give the shareable link to whomever you need and they will be able to edit.

like image 32
reformed Avatar answered Oct 31 '22 03:10

reformed