ss_sheet_share {smartsheetr} | R 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)
[Package smartsheetr version 0.1.0 Index]