<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<p>I have used an extension attribute in a similar way, though it
wasn't with AD. In my case I explicitly called out the namespace
of the custom schema, not sure if that was required, but it works
okay. Do note that the custom attribute must be indexed.</p>
<p>In my schema I have the namespace and indexed attribute, note the
"targetNamespace":</p>
<p><?xml version="1.0" encoding="UTF-8" standalone="yes"?><br>
<xsd:schema elementFormDefault="qualified"<br>
targetNamespace=<a class="moz-txt-link-rfc2396E" href="http://unc.edu/xml/ns/uncPerson">"http://unc.edu/xml/ns/uncPerson"</a><br>
xmlns:tns=<a class="moz-txt-link-rfc2396E" href="http://example.com/xml/ns/mySchema">"http://example.com/xml/ns/mySchema"</a><br>
xmlns:a=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/annotation-3">"http://prism.evolveum.com/xml/ns/public/annotation-3"</a><br>
xmlns:c=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a><br>
xmlns:xsd=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>><br>
</p>
<p> <xsd:element name="subId" type="xsd:string" minOccurs="0"
maxOccurs="1"><br>
<xsd:annotation><br>
<xsd:appinfo><br>
<a:indexed>true</a:indexed><br>
<a:displayName>subId</a:displayName><br>
<a:help>Subject ID</a:help><br>
<a:displayOrder>150</a:displayOrder><br>
</xsd:appinfo><br>
</xsd:annotation><br>
</xsd:element><br>
<br>
</p>
<p>Then in the correlation I reference that namespace as uncPerson:</p>
<p><correlation><br>
<q:equal><br>
<q:path
xmlns:uncPerson=<a class="moz-txt-link-rfc2396E" href="http://unc.edu/xml/ns/uncPerson">"http://unc.edu/xml/ns/uncPerson"</a>>extension/uncPerson:subId</q:path><br>
<expression><br>
<path
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>><br>
declare namespace
ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>;<br>
$account/attributes/ri:pid<br>
</path><br>
</expression><br>
</q:equal><br>
</correlation></p>
<p>Ethan<br>
</p>
<div class="moz-cite-prefix">On 9/23/20 8:55 AM, Andrea Picconi via
midPoint wrote:<br>
</div>
<blockquote type="cite" cite="mid:AM0PR09MB3778062B0B9706630E194B92F7380@AM0PR09MB3778.eurprd09.prod.outlook.com">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.StileMessaggioDiPostaElettronica17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I have a problem for
which I have searched for a solution everywhere, but I
couldn’t find anything: I am making a correlation between an
extended attribute present in the user in midpoint (<b><i>uidLDAP</i></b>)
and the <b><i>sAMAccountName</i></b> attribute of an AD
account that I need to import.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">below, you can see one
of the tests made (of the many)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><img style="width:7.8958in;height:1.375in" id="Immagine_x0020_2" src="cid:part1.BF445F9C.80F69021@unc.edu" class="" width="758" height="132"><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">but this does not give
me any errors, it just tells me that the correlation has
reported an unmatched:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><img style="width:3.25in;height:.6458in" id="Immagine_x0020_3" src="cid:part2.FAB98CD9.BB5FE0D6@unc.edu" class="" width="312" height="62"> <img style="width:4.7395in;height:1.2291in" id="Immagine_x0020_4" src="cid:part3.C60E4CF0.B363547F@unc.edu" class="" width="455" height="118"><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But if I try to force
the correlation by choosing the "change owner" option and
going to grab the correct user by hand in midpoint, it works<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><img style="width:3.427in;height:2.552in" id="Immagine_x0020_5" src="cid:part4.B990021A.10255852@unc.edu" class="" width="329" height="245"><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So i think the problem
comes from the attribute path on midpoint (the extended
one):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><img style="width:7.2916in;height:.2395in" id="Immagine_x0020_7" src="cid:part5.04B45B90.45994473@unc.edu" class="" width="700" height="23"><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Has anyone already tried
to use an extended attribute in the first correlation path?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Could you help me?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you and regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;mso-fareast-language:IT">Andrea
Picconi<o:p></o:p></span></b></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;mso-fareast-language:IT">IAM
(Identity Access Management)</span></i><span style="font-size:10.0pt;mso-fareast-language:IT"><br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:IT" lang="EN-US"><img style="width:1.4166in;height:.3437in" id="Immagine_x0020_1" src="cid:part6.5B0BA8C6.160210A9@unc.edu" alt="Innovery" class="" width="136" height="33"></span><span style="font-size:10.0pt;mso-fareast-language:IT"><br>
Skype: precons</span><span style="mso-fareast-language:IT"><br>
</span><span style="font-size:10.0pt;mso-fareast-language:IT">T:
+39 06 51963439 (int. 196) <br>
</span><span style="font-size:12.0pt;mso-fareast-language:IT"><br>
</span><span style="font-size:10.0pt;color:black;mso-fareast-language:IT">Strada
Quattro Palazzina A6 c/o Centro Direzionale Milanofiori,
20057 Assago (MI).<br>
</span><span style="font-size:10.0pt;mso-fareast-language:IT"><a href="http://www.innovery.net/" moz-do-not-send="true"><span style="color:#0563C1">www.innovery.net</span></a> | T:
+39 06 519 63 439</span><span style="mso-fareast-language:IT"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-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="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</body>
</html>