UpdateAccess | R Documentation |
Update access to a particular object.
UpdateAccess(object, access)
object |
object. The shared object to inspect access for. |
access |
dataRobotAccessList. A list specifying access given to all users. See
|
## Not run:
dataStoreId <- "5c1303269300d900016b41a7"
dataStore <- GetDataStore(dataStoreId)
access <- ListSharingAccess(dataStore)
# Remove access from the first user and grant it to foo@foo.com instead.
access[[1]]$username <- "foo@foo.com"
UpdateAccess(dataStore, access)
# Change access to a Read Only role.
access[[1]]$role <- SharingRole$ReadOnly
UpdateAccess(dataStore, access)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.