Description Usage Arguments Value Examples
View source: R/check-team-membership.R
Check if a user is a member of any of the given teams.
1 | check_team_membership(teams, user, syn)
|
teams |
Team IDs to check membership in |
user |
User to check (e.g. output from syn$getUserProfile()) |
syn |
Synapse client object |
A condition object indicating whether the Synapse user is a member of the given team(s).
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
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
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.