function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
F SmoakF Smoak 

to get list of users under a territory and all it's child territories

I have a Territory "Sales" under which I have a hierarchy of children territories.
I need to have list of users right from under Sales to bottom-most level. Please help with this.

Hierarchy is somwhat like:
Parent : Sales
Child : S1, S2
S1 has : SS1, SS2,......
S2 has : SS99,SS98,.....
SS1 has : SSS1,.....
and so on