diff --git a/NEWS.md b/NEWS.md index eceebd7b..47373e8f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,7 @@ * `importMetaData` bug fix when given duplicate names to exit and warn user properly. * `redcapUserRoleStructure` allows new `alerts`, `api_modules`, and `data_quality_resolution` attributes. * `exportUsers` properly handles the columns random_setup, random_dashboard and random_perform. +* `importUsers` data_access_group is no longer excluded from user import. This caused issues with removing DAG assignments on imports. ## DEPRECATION NOTICES diff --git a/R/prepUserImportData.R b/R/prepUserImportData.R index e6b6e6b1..68ad5be2 100644 --- a/R/prepUserImportData.R +++ b/R/prepUserImportData.R @@ -115,7 +115,7 @@ prepUserImportData <- function(data, # Remove fields that cannot be updated fields_to_remove <- c("email", "lastname", "firstname", - "data_access_group_id", "data_access_group") #?, "data_access_groups") + "data_access_group_id") data <- data[!names(data) %in% fields_to_remove] # Convert values to numeric