send groups for user in json format