add get all groups

Perhaps this should be documented as currently unused? We can change the docs when we implement it.