Some systems (EduMS for example) require you to provide a list of departments for which a user is manager. While some systems work the other way.
Currently, there's no good way to do this in HelloID.
A solution would be to have a list/array on the persons which contains all the departments for which a user is manager. This data is already available to HelloID as it knows all departments and their manager.