Hi!
I´m struggeling selecting all the groups in the scene with the ls command. I have no problems with joints and nurbsCurves, but I can´t with groups.
“Groups” are just transform nodes without shapes children. If all direct children of a transform node are themselves transforms, then it is displayed as “Group”. To see this more clearly, check “Display Shapes” in your outliner.
This behavior is perfectly logical, but since Maya “hides” it in some cases it can be quite confusing !