data: data.frame with the structure of redcapAPI:::REDCAP_USER_STRUCTURE. It may also have additional columns for the form and export access of each of the instruments.
rcon: A redcapConnection object.
consolidate: logical(1) If TRUE, the form and data export access values will be read from the expanded columns. Otherwise, the consolidated values (as provided by the API export) are utilized.
user_role: logical(1) If TRUE, the code will treat the data as if it is being prepared for importing User Roles.
Returns
Returns a data.frame with user settings that will be accepted by the API for import.