Description Usage Arguments Value Author(s) References See Also Examples
Shares a user volume with another user or group
1 | Jobs.shareUserVolume(fileService, path, sharedWith, allowedActions, sharee_type="USER")
|
fileService |
name of fileService (string), or object (dictionary) that defines a file service. A list of these kind of objects available to the user is returned by the function Files.getFileServices(). |
path |
String defining the path (in the remote fileService) of the user volume to be shared, starting from the root volume level. Example: rootVolume/userVolumeOwner/userVolume. |
sharedWith |
name (string) of user or group that the user volume is shared with. |
allowedActions |
list of strings defining actions the user or group is allowed to do with respect to the shared user volume. E.g.: list("read"). Type of actions are "read", "write", "grant" (the user or group can also share the user volume with another user or group) and "delete" (ability to delete the user volume , use with care). |
sharee_type |
type (string) of the entity defined by the "sharedWith" parameter. Can be set to "USER" or "GROUP". |
void
Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>
http://www.sciserver.org
http://apps.sciserver.org
http://apps.sciserver.org/dashboard/files
http://www.github.com/sciserver/SciScript-R
Files.getFileServices
, Files.getFileServiceFromName
,
Files.move
, Files.createDir
,
Files.upload
, Files.download
, Files.createUserVolume
1 | fileServices = Files.shareUserVolume(); Files.shareUserVolume(fileService[[1]],"rootVolume/userVolumeOwner/userVolume",sharedWith="userName", allowedActions=list("read"), type="USER")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.