tidyverse / googledrive

Google Drive R API
https://googledrive.tidyverse.org/
Other
322 stars 47 forks source link

Revoke Anyone With Link Permission. #445

Closed marcofaga closed 12 months ago

marcofaga commented 1 year ago

Hi. How can I revoke the "anyone with link" permission for a file? I would like to restrict access to the file only to the owner.

I´ve tried

drive_share(file = ap_id, role = "reader", type = "user", emailAddress = "sasa@asa.com")

but it didn´t work :-(

jennybc commented 12 months ago

I think this is basically a duplicate of #392 and #180. I have started the work to address that in #394 but it's incomplete. So, as it stands, googledrive does not have the ability to revoke that permission 😢