Check if a user is a member of any of the given teams.

check_team_membership(teams, user, syn)

Arguments

teams

Team IDs to check membership in

user

User to check (e.g. output from syn$getUserProfile())

syn

Synapse client object

Value

A condition object indicating whether the Synapse user is a member of the given team(s).

Examples

if (FALSE) { syn <- synapse$Synapse() syn$login() user <- syn$getUserProfile("dcctravistest") check_team_membership(teams = "3396691", user = user, syn = syn) check_team_membership( teams = c("3397398", "3377637"), user = user, syn = syn ) }