added get groups by ids