Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Drive SDK Update sharing permissions

Is there an option to change the sharing settings trough drive SDK?

If I add permissions at user level with a email Id. I can see the visibility perms of doc as Private. If I set permission to { 'value': None, 'type': "anyone", 'role': "writer"}. I can see the visibility perms of doc as "Public on the web".

enter image description here

Can any help, what settings can set sharing settings to Anyone with link.

The issue with public on web is we could see anonymous users are able to find the doc and we could see unknown presence on the doc..

like image 802
sandeep koduri Avatar asked Sep 12 '12 10:09

sandeep koduri


1 Answers

Try

'value' => 'me', 'type' => 'anyone', 'role' => 'reader', 'withLink' => true

This will change sharing settings to Anyone with link.

like image 88
sgi Avatar answered Oct 12 '22 20:10

sgi