if (FALSE) {
unlockREDCap(connections = c(rcon = "project_alias"),
url = "your_redcap_url",
keyring = "API_KEYs",
envir = globalenv())
# Export user-role assignments
exportUserRoleAssignments(rcon)
# Import/modify a user-role assignment
NewData <- data.frame(username = "desired_user_name",
unique_role_name = "KN3430U")
importUserRolesAssignments(rcon,
data = NewData)
}
Run the code above in your browser using DataLab