[#57063802] Added function to get group tree.