Add save_groups() API and request group details for lookup_groups()