<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If we wanted to detect and avoid such collisions, would it just be a matter of checking on each class type?</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="background-color: rgb(30, 31, 34);">
<pre class="elementToProof"><div class="elementToProof" style="font-family: "JetBrains Mono", monospace; font-size: 9.8pt; color: rgb(188, 190, 196);"><span class="spanWithBackgroundColor" style="background-color: rgb(41, 60, 64);">nameServiceUnique = midpoint.isUniquePropertyValue(ServiceType, 'name', name.toString())<br>emailServiceUnique = midpoint.isUniquePropertyValue(ServiceType, 'extension/mail', name.toString())<br>nameUserUnique = midpoint.isUniquePropertyValue(UserType, 'name', name.toString())<br>emailUserUnique = midpoint.isUniquePropertyValue(UserType, 'extension/mail', name.toString())</span></div></pre>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> midPoint <midpoint-bounces@lists.evolveum.com> on behalf of Pavol Mederly via midPoint <midpoint@lists.evolveum.com><br>
<b>Sent:</b> Tuesday, September 8, 2026 17:58<br>
<b>To:</b> midpoint@lists.evolveum.com <midpoint@lists.evolveum.com><br>
<b>Cc:</b> Pavol Mederly <mederly@evolveum.com><br>
<b>Subject:</b> [EXTERNAL SENDER] Re: [midPoint] Function of midpoint.isUniqueProperty</font>
<div> </div>
</div>
<div>
<p>Hello,</p>
<p>the current implementation limits the search for conflicts to the type of the object provided (e.g., UserType).</p>
<p>So your ServiceType object would not collide with provided UserType.</p>
<p>Source code: <a href="https://github.com/Evolveum/midpoint/blob/9ca2a442a11dc7c8ae35fd908a5347d05ecb4e33/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/MidpointFunctionsImpl.java#L844-L844" class="x_moz-txt-link-freetext">https://github.com/Evolveum/midpoint/blob/9ca2a442a11dc7c8ae35fd908a5347d05ecb4e33/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/MidpointFunctionsImpl.java#L844-L844</a></p>
<p>Best regards,</p>
<pre class="x_moz-signature" cols="72">--
Pavol Mederly
Interim Chief Product Officer
evolveum.com</pre>
<div class="x_moz-cite-prefix">On 08/09/2026 21:09, King, Robert via midPoint wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
-->
</style>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Following the unique property guide</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<a href="https://docs.evolveum.com/midpoint/reference/support-4.10/concepts/iteration/unique-property-value/" class="x_moz-txt-link-freetext">https://docs.evolveum.com/midpoint/reference/support-4.10/concepts/iteration/unique-property-value/</a></div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
And I have a functionality question. Is the isUniqueProperty function limited by object type? By that I mean would a service with extension/mail collide with a user with extension/mail?</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class="x_elementToProof" style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<br>
<fieldset class="x_moz-mime-attachment-header"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
midPoint mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="x_moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</div>
</body>
</html>