It took a few hours to find but after digging through some foreign web sites I finally found the code that I needed to add the parent group names to a node.