add get all groups

Maybe we should have a single `max_items_per_page` config value instead?