findRoots

open fun findRoots(organisationUnits: List<OrganisationUnit>): Set<OrganisationUnit>

Extract a set of root uid's of OrganisationUnits, accessible by the user, from a list of OrganisationUnits and a list of Assigned OrganisationUnits. Based on the paths of the OrganisationUnits from the list.

Return

set of root uid's

Parameters

organisationUnits