Make group resource in api a TreeLeaf