Google Drive File Sharing Permissions

Is it possible to change sharing settings through the SDK drive?

If I add user level permissions with email id. I see the perms of doc as Private. If I set the permission to {'value': None, 'type': "any", "role": "writer"}. I see the transparency of the doc document as "Public on the Internet."

enter image description here

Can there be any help, what settings can set sharing options for anyone with a link.

The problem with publishing on the Internet is that we can see that anonymous users can find the document, and we could see an unknown presence in the document.

+5
source share
2 answers

Try

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

This will change the sharing settings for everyone who has the link.

+4
source

Try this link with the following values

'value' = 'me', 'type' = 'any', 'role' = 'reader'

+2
source

Source: https://habr.com/ru/post/918758/


All Articles