<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello Aivo,</p>
<p><br>
</p>
<p>I'm afraid we can select user templates based on employeeType
attribute only. (I don't have experiences with property
constraints. Having looked at the code, it is used to set OID for
newly created objects based on a value of selected property. Looks
like it is of no use for you in your scenario.)</p>
<p><br>
</p>
<p>But I think your requirement is very reasonable; maybe you could
implement it yourself by changing
ModelUtils.determineObjectPolicyConfiguration methods (beware,
there are more of them) or you could log a JIRA for this.</p>
<p><br>
</p>
<p>Best regards,<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 20.09.2016 16:29, Aivo Kuhlberg
wrote:<br>
</div>
<blockquote cite="mid:1474381793924.80625@rmit.ee" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
<p>When I set defaultObjectPolicyConfiguration for UserType in
midPoint 3.4.1 then it is set for all users. Is it possible
somehow make it more flexible, eg use several user templates
depending on some user parameter. I wanted to test if I can
configure different user attribute limitations when creating
users in different organizations.<br>
</p>
<p><br>
</p>
<p>I noticed also that there is a parameter "Property constraint"
in "Edit Object Policy" dialog but I did not find much
information what is it used for.<br>
</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Aivo Kuhlberg<br>
</p>
<br>
<hr>
<font face="Arial" color="Gray" size="2">Käesolev e-kiri võib
sisaldada asutusesiseseks kasutamiseks tunnistatud teavet.<br>
This e-mail may contain information which is classified for
official use.</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</body>
</html>