Skip to contents

Get the permissions that the caller has on an Entity.

Usage

synGetPermissions(instance, synapse_client=NULL)

Arguments

instance

(SubmissionView) The SubmissionView instance to operate on.

synapse_client

(Optional[Synapse]) If not passed in, the last created instance from the Synapse class constructor will be used.

Value

A Permissions object

Examples

if (FALSE) { # \dontrun{
## Using this function:
    # Getting permissions for a Synapse Entity
    library(synapser)
    synLogin()

    permissions = SubmissionView(id = "syn123") |> synGetPermissions()

    # Getting access types list from the Permissions object
    permissions$access_types
} # }