<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Hi!</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Regarding Organization Tree panel (midpoint/admin/org/tree),  <span>I've noticed that the tab component displays a tab for each root organization.</span></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> <span>Currently, archived organizations are also appearing as root organizations within this tab component.</span><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> <span>From my understanding, the root organizations are retrieved in the </span><a href="https://github.com/Evolveum/midpoint/blob/master/gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/orgs/AbstractOrgTabPanel.java#L160" class="">AbstractOrgTabPanel.loadOrgRoots:160</a> method. The query builder uses isRoot filter, which checks if an <a href="https://github.com/Evolveum/prism/blob/1be9543315827e7839863db6b75238f9299d0cf9/infra/prism-impl/src/main/java/com/evolveum/midpoint/prism/impl/query/OrgFilterImpl.java#L38" class="">organization lacks a parent</a>.</div><div><br></div><div dir="ltr" data-setdir="false"> <div><div>Could you clarify if this is the intended behavior? If not, I'd like to explore potential workarounds to prevent archived organizations from being displayed as root organizations in this panel.</div><div><br></div><div>Thank you for your time and consideration.</div><div><br></div><div>Best regards,</div></div><br></div><div dir="ltr" data-setdir="false">Claudio Weiler</div><div><br></div><div><br></div><div><br></div><div><br></div></div></body></html>