The shortcode uses a ParentGroupId to look up groups that a person belongs to. That means that all of your groups of a certain placement type (like Bus, Tent, Cabin, Team, etc) would need to be under the same parent group for this to work. If that's not your setup, you could likely modify this in some way to work still, but this is what worked well for us.
An example of our Middle School camp Rec Team and Small Group structure is provided in this screenshot.