check_team_membership: Check team membership

Description Usage Arguments Value Examples

View source: R/check-team-membership.R

Description

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

Usage

1
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

 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)

dccvalidator documentation built on July 2, 2020, 4:05 a.m.