check for userData before trying to parse
add groupIds to userData