-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: "anyone with the link can view" permission #568
Comments
Use |
Hi @clawoflight, thanks. |
Hello again @RickCogley. Unfortunately |
I looked at the API docs, but, I cannot see anything specific about those two settings which are available in the GUI itself. @odeke-em |
Here's what's needed: https://developers.google.com/drive/v3/reference/permissions#resource-representations type: "anyone" It would be very usefull to add the "anyone with the link" feature |
Aha I finally now understand the problem. Thank you @thebaddie for rephrasing it and thank you @RickCogley for advocating it, I have been able to locally produce the expected output. PR coming shortly. |
Allow sharing of file with `anyone with link` without having to publish it to the internet. Publishing is different because after a file is published, it is indexed (See #568 (comment)). We don't want the file to be indexed, but just accessible by anyone with a link to it. ```shell $ drive share --type user,anyone,anyone,user --role reader,anyone --emails "emm.odeke@gmail.com" outf.gif Provide access for accountType(s) user anyone For roles(s) reader Addressees: + emm.odeke@gmail.com + Anyone with the link File(s) to share: + outf.gif Proceed with the changes? [Y/n]:y successful share for outf.gif with email "emm.odeke@gmail.com", role "reader" accountType "user" successful share for outf.gif with email "", role "reader" accountType "anyone" ``` Fixes #568.
Hey folks. Thank you very much for the patience. I finally got time and thought about it. After re-reading the content in the issue I was able to discover how to solve it. The hints and discussions helped a lot. I learnt something about published files being indexed (which is not want the user wants) and also thanks for the reference to the documentation(we were using the same permissions anyways, but a refresher was good). Auto-closed by PR #648. Please get the latest from master $ go get -v -u github.com/odeke-em/drive/drive-gen && drive-gen and then you can now do this $ drive share --type user,anyone,anyone,user --role reader,anyone --emails "emm.odeke@gmail.com" outf.gif
Provide access for accountType(s)
user
anyone
For roles(s)
reader
Addressees:
+ emm.odeke@gmail.com
+ Anyone with the link
File(s) to share:
+ outf.gif
Proceed with the changes? [Y/n]:y
successful share for outf.gif with email "emm.odeke@gmail.com", role "reader" accountType "user"
successful share for outf.gif with email "", role "reader" accountType "anyone" Then get the URL of the file $ drive url outf.gif Please reopen if it persists. |
Enables sharing to anyone with the link but the file won't be publicly indexed as is usually with files that are published publicly. ```shell $ drive share --with-link ComedyPunchlineDrumSound.mp3 ``` Fixes #568. Follows suggestions in #650 (comment).
Hi - how could I set "anyone with the link can view" permission like in the inline screenshot below? The
drive share
command seems to be email-centric. Please advise, thanks.The text was updated successfully, but these errors were encountered: