Those child users don't then have their own child users (because it's cyclic) so do you have to choose one option of the two, both with a drawback?
I was thinking you could replace or supplement the real user IDs with their indices in the array of returned users.