Learn R Programming

datarobot (version 2.18.6)

Share: Share a shareable object with a particular user.

Description

See SharingRole for more details on available access levels that can be granted to a user. Set role to NULL to revoke access to a particular user.

Usage

Share(object, username, role = "default", canShare = NULL)

Arguments

object

object. The shared object to inspect access for.

username

character. The name of the user to share the object with.

role

character. The role (access level) to give that user. See SharingRole.

canShare

logical. Is the user allowed to further reshare?

Examples

Run this code
if (FALSE) {
 dataStoreId <- "5c1303269300d900016b41a7"
 dataStore <- GetDataStore(dataStoreId)
 # Grant access to a particular user.
 Share(dataStore, "foo@foo.com")
 # Grant access in a Read Only role.
 Share(dataStore, "foo@foo.com", role = SharingRole$ReadOnly)
 # Revoke access
 Share(dataStore, "foo@foo.com", role = NULL)
}

Run the code above in your browser using DataLab