You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/users.R
  3. \name{add_users}
  4. \alias{add_users}
  5. \title{Add multiple users}
  6. \usage{
  7. add_users(admin, pass, users,
  8. url = "http://127.0.0.1:9090/i2b2/services/PMService/getServices",
  9. domain = "")
  10. }
  11. \arguments{
  12. \item{admin}{The username to connect with}
  13. \item{pass}{The password for the user}
  14. \item{users}{The dataframe containing the users to add}
  15. \item{url}{The URL of the i2b2 cell to communicate with}
  16. \item{domain}{The domain to act on}
  17. }
  18. \value{
  19. The XML return message as an httr::content() object
  20. }
  21. \description{
  22. Add users in bulk from a dataframe
  23. }
  24. \details{
  25. Add users in bulk from a dataframe containing the following columns:
  26. * id: The unique user id to add for each user
  27. * name: The name for each user
  28. * email: The email address for each user
  29. * password: The password for each user
  30. * role: The role to give the user
  31. Any role can be given from the ones defined
  32. (ADMIN, MANAGER, USER, DATA_PROT, DATA_DEID, DATA_LDS, DATA_AGG, DATA_OBFSC)
  33. ADMIN gives all roles for the project, and ADMIN role to project @
  34. MANAGER gives all roles down from DATA_DEID for the project
  35. USER gives USER and DATA_OBFSC roles for the project
  36. Any DATA_* role gives USER and roles down from the DATA_* role given to the project
  37. }