You can use googledrive to manage permissions on your Drive files, i.e. grant different people or groups of people various levels of access (read, comment, edit, etc.).

Let’s upload a file and view its permissions.

shared = FALSE indicates that this file is not yet shared with anyone and, for those so inclined, detailed information on permissions can be found in the permissions_resource list-column. Note that the drive_resource, which is always present in a dribble, typically also contains information on permissions. So if you just want to know about permissions, as opposed to modifying them, you can probably consult drive_resource.

Let’s give a specific person permission to edit this file and a customized message, using the emailAddress and emailMessage parameters.

Let’s say we also want “anyone with a link” to be able to read the file.

We see that the file is now shared = TRUE.

Now that we’ve made a few updates to our permissions, the permissions_resource list-column has become more interesting. Here’s how to pull important information out of this and put into a tibble with one row per permission. (Permission handling will become more formalized in future versions of googledrive. See the issue). We use other packages in the tidyverse now for this data wrangling.

We’ve suppressed execution of the above chunk but here’s some static, indicative output: