Share: Share a shareable object with a particular user.

View source: R/Sharing.R

ShareR Documentation

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

## Not run: 
 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)

## End(Not run)

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