UpdateAccess: Update access to a particular object.

View source: R/Sharing.R

UpdateAccessR Documentation

Update access to a particular object.

Description

Update access to a particular object.

Usage

UpdateAccess(object, access)

Arguments

object

object. The shared object to inspect access for.

access

dataRobotAccessList. A list specifying access given to all users. See ListSharingAccess.

Examples

## 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)

datarobot documentation built on May 29, 2024, 4:36 a.m.