<div dir="ltr">Any ideas, suggestions? We know that there is an auxiliary archetype, we know that it complements structural one. But how to use it to provide appropriate specific for example for Employee and Contractor? For example how to provide different algorithms for iterators referring to "iterationSpecification". "iterationSpecification" is a part of object templates but I can see that Midpoint skips auxiliary object templates.</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, 4 Aug 2025 at 11:56, Yakov Revyakin <<a href="mailto:yrevyakin@gmail.com">yrevyakin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><a href="https://docs.evolveum.com/midpoint/reference/master/schema/archetypes/configuration/" target="_blank">https://docs.evolveum.com/midpoint/reference/master/schema/archetypes/configuration/</a><br>says<br>Auxiliary archetypes purpose:<br>Allows you model more dynamic situations and complement the main (structural) archetype. For example, if the structural archetype is Person, auxiliary archetypes can be Employee, Customer, Student, Volunteer, and so on.<br>Statement common for archetypes:<br>Archetype assignments must be <b>direct </b>and non-conditional. Indirect archetype assignments (e.g. inducement in in a role) is not supported. Conditions, validity constraints and any other assignment parameters and settings are <b>not </b>supported for archetype assignments - and it is unlikely that they ever will be supported.<br><br>Questions: <div>- What is a right way to assign an auxiliary archetype if a structured one is already assigned via schemaHandling? Can we assign it from structural archetype object template with assignmentTargetSerach construct?</div><div>- Can we manipulate
auxiliary archetypes dynamically in some way, switching, for example, between Employee and Contractor auxiliary archetypes on top of Person archetype? <br>- It seems to me that if an auxiliary archetype is linked with an appropriate object template the object template is ignored during processing (an object template of structural archetype is taken into account only). What is expected behavior? (I assigned auxiliary archetype via UI to test this point)<br><br>Thanks in advance,</div><div>Yakov</div></div>
</blockquote></div>