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.

The shared column shows 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.

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

#> Permissions updated
#>   * role = writer
#>   * type = user
#> For files:
#>   * chicken-perm-article.txt: 1VXbth6GiOmTuBblXry8QPZUR2FkFBweI
#> # A tibble: 1 x 5
#>   name           shared id                drive_resource permissions_reso…
#> * <chr>          <lgl>  <chr>             <list>         <list>           
#> 1 chicken-perm-… TRUE   1VXbth6GiOmTuBbl… <list [39]>    <list [2]>

We see that the file is now shared. We also want anyone to be able to read the file.

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.