<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Hi,</div>
<div class=""><br class="">
</div>
<div class="">Users of type “Clients” and “Partners" can be accomplished by using archetypes. You can’t bind a specific UserType schema extension to a specific ‘archetype’ (yet). From documentation (<a href="https://docs.evolveum.com/midpoint/features/planned/archetypes/" class="">https://docs.evolveum.com/midpoint/features/planned/archetypes/</a>):</div>
<div class=""><br class="">
</div>
<div class="">
<div class="sect1">
<h2 id="archetype-schema" class="">Archetype Schema</h2>
<div class="sectionbody">
<div class="paragraph">
<p class="">MidPoint supports <a href="https://docs.evolveum.com/midpoint/reference/schema/custom-schema-extension/" class="">
custom schema extension</a> functionality for a long time. The limitation is that this schema is bound to the static types, such as UserType or RoleType. It cannot be applied to archetypes directly. The workaround was to hide extra extension properties by using
object template. As object template can be archetype-specific, this works. But it is quite difficult to maintain: adding new extension property for an archetype means hiding this property in all other archetypes.</p>
</div>
<div class="paragraph">
<p class="">Therefore it would be much better if each archetype can define its own schema extension. And this is feasible to implement, but it is not necessarily easy. The current "dogma" in midPoint is that the schema is known completely at midPoint start
time (hence the need to a restart when extension schema is changed). This can be changed, but it means dealing with fundamental layer that underlines midPoint (<a href="https://docs.evolveum.com/midpoint/devel/prism/schema/" class="">Prism schema</a>). But
we will get to that eventually. But as this is not an easy task, therefore it won’t be anytime soon unless there is a
<a href="https://docs.evolveum.com/support/subscription-sponsoring/" class="">platform subscriber</a> asking for it.</p>
</div>
</div>
</div>
</div>
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Davy Priem<br class="">
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">Op 23 jul. 2021, om 16:24 heeft Douglas Alves via midPoint <<a href="mailto:midpoint@lists.evolveum.com" class="">midpoint@lists.evolveum.com</a>> het volgende geschreven:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hello guys,<br class="">
<br class="">
I'm newbie in IAM, and also Midpoint, I watched some tutorials in Youtube about Midpoint specially one that extends a Administrator schema adding the attribute "hat" to user form. My question is how create two types of users "Clients" and "Partners" , each
of users have different set of attributes.<br class="">
We tried to use different schemas.xsd that extends from UserType but in that case we won't able to separate the attributes from partners and clients.<br class="">
Apreciate your help.<br class="">
<br class="">
Kind Regards,<br class="">
Douglas Alves.<br class="">
_______________________________________________<br class="">
midPoint mailing list<br class="">
<a href="mailto:midPoint@lists.evolveum.com" class="">midPoint@lists.evolveum.com</a><br class="">
https://lists.evolveum.com/mailman/listinfo/midpoint<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>