implemented get groups of user