ObjectsAttribute works great when all searched types show the same attribute, but this is not always possible.
There is a hard coded handling for users and groups in
We should have a generic solution for this instead, which shows the
nameAttr for each object depending on its computed type, and shows type of each object if there are several object types, as is done in
It would also be useful to specify a fixed filter for each object type. But this may already possible using
$filterElementDefinitions parameter. We just need to adapt
FixedFilterElement to specify which types it applies to I guess.
Needed for fd-plugins#6043 (closed)