ss_sheet_share: Share a sheet with a user

View source: R/ss_sheet_share.R

ss_sheet_shareR Documentation

Share a sheet with a user

Description

Share a sheet with a user

Usage

ss_sheet_share(
  ss_id,
  email,
  access_level = c("VIEWER", "EDITOR", "COMMENTER", "EDITOR_SHARE", "OWNER", "ADMIN")
)

Arguments

ss_id

The sheetId (or permalink) of the table

email

The email address of the user to share to, i.e. a value in ss_list_users()$email

access_level

A character object. See https://smartsheet.redoc.ly/#section/Security/Access-Levels

Value

An ss_resp object

Examples

## Not run: 
ss_id = ss_sheetid(ss_write_sheet(paste0("smartsheetr-example-",random_sheet_name())))
users = ss_list_users()
user = users[1,'email']
ss_sheet_share(ss_id, user)
# clean up
ss_delete_sheet(ss_id)

## End(Not run)


smartsheetr documentation built on Nov. 2, 2023, 5:42 p.m.