This guide contains three steps:
Extend Identity Collector to collect managedBy attribute
Create Store procedure that set the managedBy as SecurityIq data owners
Schedule a job that runs the above store procedure
test
Note: If a group is managed by another group, it opens the managing group, and set its members as owners (including nested groups)