How to use tree group in nextcloud,that is, a group structure with superiors and subordinates

How to use tree group in nextcloud

You’ll have to elaborate on your use case.

The solution may be different in Nextcloud.