Combined the functions changeRole and changeGroup into one fully functioning updateInfo.