synSetPermissions.Rd
Sets permission that a user or group has on an Entity. An Entity may have its own ACL or inherit its ACL from a benefactor.
synSetPermissions(entity, principalId=NULL, accessType=list("READ", "DOWNLOAD"), modify_benefactor=FALSE, warn_if_inherits=TRUE, overwrite=TRUE)
An Entity or Synapse ID to modify
Identifier of a user or group
Type of permission to be granted. One or more of CREATE, READ, DOWNLOAD, UPDATE, DELETE, CHANGE_PERMISSIONS
Set as TRUE when modifying a benefactor's ACL
Set as FALSE, when creating a new ACL.
Trying to modify the ACL of an Entity that
inherits its ACL will result in a warning
By default this function overwrites existing
permissions for the specified user. Set this
flag to FALSE to add new permissions nondestructively.
an Access Control List object
if (FALSE) {
synSetPermissions("syn11705401", 273950, c("READ", "DOWNLOAD"))
}