View source: R/ss_sheet_share.R
| ss_sheet_share | R Documentation | 
Share a sheet with a user
ss_sheet_share(
  ss_id,
  email,
  access_level = c("VIEWER", "EDITOR", "COMMENTER", "EDITOR_SHARE", "OWNER", "ADMIN")
)
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  | 
An ss_resp object
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.