I would like to change the default permissions of a google sheets file to anyone with the link can read
weekly_fight <-
googlesheets4::gs4_create(
paste0(
two_weeks_ago_monday,
"-",
two_weeks_ago_sunday,
"/",
last_monday,
"-",
last_sunday,
"_Weekly Report Google Analytics My Site GA4|UA+Top SKU+COUPON"
),
sheets = list(
Weekly_Traffic_site1 = week_on_week_2,
Weekly_Traffic_site2 = week_on_week_2_im,
Ecommerce_Performances_site1_IT = top_products_sold_last_week_ua_site1_EN,
Ecommerce_Performances_site2_IT = top_products_sold_last_week_ua_site2_EN,
Coupon_site1 = count_coupon_site1,
Coupon_site2 = count_coupon_site2
)
)
googlesheets4::gs4_browse(weekly_fight)
metadata <- googlesheets4::gs4_get(weekly_fight)
url_doc <- metadata$spreadsheet_url
I can read and browse the file as creator but when I send the link with the script via email with the gamilR package to my team they cannot access it as I need to manually update the permission in the file
Is there a way to change the default access to the file with the googlesheets4 package or the Drive API without manual intervention?