<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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;}
@font-face
{font-family:"Segoe UI Emoji";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 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;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"Preformattato HTML Carattere";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.PreformattatoHTMLCarattere
{mso-style-name:"Preformattato HTML Carattere";
mso-style-priority:99;
mso-style-link:"Preformattato HTML";
font-family:Consolas;}
span.StileMessaggioDiPostaElettronica22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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]-->
</head>
<body lang="IT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Chris,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">thank you for your example.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">So I could put whatever? For example, I could put “<a href="http://bigpoint.evolveum.com/xml/ns/public/resource/instance-3">http://bigpoint.evolveum.com/xml/ns/public/resource/instance-3</a>”
and would it work?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Or I could even use yours, maybe (</span><span lang="EN-US">"</span><a href="http://curms.rsint.net/xml/ns/curms/extension"><span lang="EN-US">http://curms.rsint.net/xml/ns/curms/extension</span></a><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">Is it right?<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 again,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Andrea</span><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> chris@cmwoods.com <chris@cmwoods.com> <br>
<b>Sent:</b> Friday, September 25, 2020 1:10 PM<br>
<b>To:</b> midPoint General Discussion <midpoint@lists.evolveum.com><br>
<b>Cc:</b> Andrea Picconi <andrea.picconi@innovery.net>; Marianna De Biasio <marianna.debiasio@innovery.net>; Jacopo Giuliano <jacopo.giuliano@innovery.net><br>
<b>Subject:</b> Re: [midPoint] Problem with correlation and external attribute<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi Andrea,<br>
<br>
just be creative ;-). Here is a snippet from our user schema extension:<o:p></o:p></span></p>
<pre><?xml version="1.0" encoding="UTF-8" standalone="yes"?> <xsd:schema elementFormDefault="qualified" targetNamespace="<a href="http://curms.rsint.net/xml/ns/curms/extension">http://curms.rsint.net/xml/ns/curms/extension</a>" xmlns:tns="<a href="http://curms.rsint.net/xml/ns/curms/extension">http://curms.rsint.net/xml/ns/curms/extension</a>" xmlns:a="<a href="http://prism.evolveum.com/xml/ns/public/annotation-3">http://prism.evolveum.com/xml/ns/public/annotation-3</a>" xmlns:c="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>" xmlns:t="<a href="http://prism.evolveum.com/xml/ns/public/types-3">http://prism.evolveum.com/xml/ns/public/types-3</a>" xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"> <xsd:import namespace="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>" /> <xsd:import namespace="<a href="http://prism.evolveum.com/xml/ns/public/types-3">http://prism.evolveum.com/xml/ns/public/types-3</a>" /> <xsd:complexType name="UserExtensionType"> <xsd:annotation> <xsd:documentation> The R&S UserType Extension. This extends the standard midPoint UserType schema to include custom attributes as required. </xsd:documentation> <xsd:appinfo> <a:extension ref="c:UserType" /> </xsd:appinfo> </xsd:annotation> <xsd:sequence> <xsd:element name="rsUniqueId" type="xsd:string" minOccurs="0" maxOccurs="1"> <xsd:annotation> <xsd:documentation> R&S Unique ID </xsd:documentation> <xsd:appinfo> <a:indexed>true</a:indexed> <a:displayName>user.hcm.uniqueid.disp</a:displayName> <a:displayOrder>100</a:displayOrder> <a:help>user.hcm.uniqueid.help</a:help> </xsd:appinfo> </xsd:annotation> </xsd:element> <o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
Here we chose <a href="http://curms.rsint.net/xml/ns/curms/extension">http://curms.rsint.net/xml/ns/curms/extension</a> as the targetNamespace. We could have chosen anything really.<br>
<br>
Regards,<br>
Chris.<br>
<br>
September 25, 2020 12:44 PM, "Andrea Picconi via midPoint" <<a href="mailto:midpoint@lists.evolveum.com?to=%22Andrea%20Picconi%20via%20midPoint%22%20%3cmidpoint@lists.evolveum.com%3e" target="_blank">midpoint@lists.evolveum.com</a>> wrote:<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi,</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">thank you for your help Ivan.
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">I need some clarification regarding the personal “targetNamespace”: how can I generate a custom one that is good for my usage (like the ones I saw from your example and Ethan’s)?
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Forgive me if the question may seem silly, but this is the first time I’m working on something like this
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Segoe UI Emoji",sans-serif">😊</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Thank you and regards,</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Andrea</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif">From:</span></b><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> midPoint <<a href="mailto:midpoint-bounces@lists.evolveum.com" target="_blank">midpoint-bounces@lists.evolveum.com</a>>
<b>On Behalf Of </b>Ivan Noris via midPoint<br>
<b>Sent:</b> Friday, September 25, 2020 12:12 PM<br>
<b>To:</b> <a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a><br>
<b>Cc:</b> Ivan Noris <<a href="mailto:ivan.noris@evolveum.com" target="_blank">ivan.noris@evolveum.com</a>><br>
<b>Subject:</b> Re: [midPoint] Problem with correlation and external attribute<o:p></o:p></span></p>
</div>
</div>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi Andrea,<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">take an inspiration from e.g.
<a href="https://github.com/Evolveum/midpoint-samples/blob/master/samples/schema/extension-piracy.xsd" target="_blank">
https://github.com/Evolveum/midpoint-samples/blob/master/samples/schema/extension-piracy.xsd</a><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">See targetNamespace and xmlns:tns definitions in <xsd:schema element.<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Ivan<o:p></o:p></span></p>
<div>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">On 25. 9. 2020 11:50, Andrea Picconi via midPoint wrote:<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi Ethan,</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">it's probably just that ... I'll try to find a way to create it myself, even if I don't know how.</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Thanks again Ethan, thanks Ivan</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"> midPoint
<a href="mailto:midpoint-bounces@lists.evolveum.com" target="_blank"><midpoint-bounces@lists.evolveum.com></a>
<b>On Behalf Of </b>Ethan Kromhout via midPoint<br>
<b>Sent:</b> Friday, September 25, 2020 11:25 AM<br>
<b>To:</b> <a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a><br>
<b>Cc:</b> Ethan Kromhout <a href="mailto:kromhout@unc.edu" target="_blank"><kromhout@unc.edu></a><br>
<b>Subject:</b> Re: [midPoint] Problem with correlation and external attribute</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Ivan and Andrea,</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Is it problematic that the targetNamespace used in this extension could collide with one of the midPoint provided ones? I've always use a URN unique to my organization.</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Ethan</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<div>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">On 9/25/20 4:10 AM, Ivan Noris via midPoint wrote:</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi Andrea,</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">can you try searching by that extension attribute in midPoint using Query playground?</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Ivan</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<div>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">On 25. 9. 2020 9:44, Andrea Picconi via midPoint wrote:</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi again,</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">I also tried
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="mailto:kromhout@unc.edu" target="_blank"><span lang="EN-US" style="font-family:"Calibri",sans-serif;text-decoration:none">@Ethan Kromhout</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">’s
example, but it still gives me the two errors I showed you in the previous mail.</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">I probably did something wrong in the setting, below how I set it all up:</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">this is my extension_user_field schema namespace:</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><xsd:schema elementFormDefault=<i>"qualified"</i></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">targetNamespace=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank"><i><span lang="EN-US">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</span></i></a><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">xmlns:tns=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank"><i><span lang="EN-US">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</span></i></a><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">xmlns:a=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://prism.evolveum.com/xml/ns/public/annotation-3" target="_blank"><i><span lang="EN-US">"http://prism.evolveum.com/xml/ns/public/annotation-3"</span></i></a><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">xmlns:c=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank"><i><span lang="EN-US">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</span></i></a><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">xmlns:xsd=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://www.w3.org/2001/XMLSchema" target="_blank"><i><span lang="EN-US">"http://www.w3.org/2001/XMLSchema"</span></i></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">here the indexed attribute:</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><xsd:element name=<i>"uidLDAP"</i> type=<i>"xsd:string"</i> minOccurs=<i>"0"</i> maxOccurs=<i>"1"</i>></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><xsd:annotation></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><xsd:appinfo></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><a:indexed>true</a:indexed></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><a:displayName>LDAP UID</a:displayName></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><a:displayOrder>550</a:displayOrder></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><a:help>UID from LDAP</a:help></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"></xsd:appinfo></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"></xsd:annotation></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"></xsd:element></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">here instead the correlation that I have tried, starting from what you have seen above:</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><correlation></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><q:equal></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><q:path xmlns:ri=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank"><span lang="EN-US">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">>extension/uidLDAP</q:path></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><expression></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><path xmlns:ri=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank"><span lang="EN-US">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">declare namespace ri=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank"><span lang="EN-US">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">;</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">$projection/attributes/ri:sAMAccountName</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"></path></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"></expression></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"></q:equal></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"></correlation></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Could you tell me where I'm wrong?</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Thank you,</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Andrea</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"> midPoint
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="mailto:midpoint-bounces@lists.evolveum.com" target="_blank"><span lang="EN-US"><midpoint-bounces@lists.evolveum.com></span></a>
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">On Behalf Of
</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Ethan Kromhout via midPoint<br>
<b>Sent:</b> Wednesday, September 23, 2020 3:12 PM<br>
<b>To:</b> </span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="mailto:midpoint@lists.evolveum.com" target="_blank"><span lang="EN-US">midpoint@lists.evolveum.com</span></a><br>
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Cc:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"> Ethan Kromhout
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="mailto:kromhout@unc.edu" target="_blank"><span lang="EN-US"><kromhout@unc.edu></span></a><br>
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Subject:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"> Re: [midPoint] Problem with correlation and external attribute</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">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.</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">In my schema I have the namespace and indexed attribute, note the "targetNamespace":</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><?xml version="1.0" encoding="UTF-8" standalone="yes"?><br>
<xsd:schema elementFormDefault="qualified"<br>
targetNamespace=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://unc.edu/xml/ns/uncPerson" target="_blank"><span lang="EN-US">"http://unc.edu/xml/ns/uncPerson"</span></a><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">xmlns:tns=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://example.com/xml/ns/mySchema" target="_blank"><span lang="EN-US">"http://example.com/xml/ns/mySchema"</span></a><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">xmlns:a=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://prism.evolveum.com/xml/ns/public/annotation-3" target="_blank"><span lang="EN-US">"http://prism.evolveum.com/xml/ns/public/annotation-3"</span></a><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">xmlns:c=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3" target="_blank"><span lang="EN-US">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</span></a><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">xmlns:xsd=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://www.w3.org/2001/XMLSchema" target="_blank"><span lang="EN-US">"http://www.w3.org/2001/XMLSchema"</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p style="margin-bottom:12.0pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><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></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Then in the correlation I reference that namespace as uncPerson:</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><correlation><br>
<q:equal><br>
<q:path xmlns:uncPerson=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://unc.edu/xml/ns/uncPerson" target="_blank"><span lang="EN-US">"http://unc.edu/xml/ns/uncPerson"</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">>extension/uncPerson:subId</q:path><br>
<expression><br>
<path xmlns:ri=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank"><span lang="EN-US">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">><br>
declare namespace ri=</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank"><span lang="EN-US">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">;<br>
$account/attributes/ri:pid<br>
</path><br>
</expression><br>
</q:equal><br>
</correlation></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Ethan</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<div>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">On 9/23/20 8:55 AM, Andrea Picconi via midPoint wrote:</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi all,</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">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.</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">below, you can see one of the tests made (of the many)</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><img border="0" width="758" height="132" style="width:7.8958in;height:1.375in" id="_x0000_i1025" src="cid:image001.png@01D69580.D12BCEF0"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">but this does not give me any errors, it just tells me that the correlation has reported an unmatched:</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><img border="0" width="312" height="62" style="width:3.25in;height:.6458in" id="_x0000_i1026" src="cid:image002.png@01D69580.D12BCEF0"><img border="0" width="455" height="118" style="width:4.7395in;height:1.2291in" id="_x0000_i1027" src="cid:image003.jpg@01D69580.D12BCEF0"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">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</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><img border="0" width="329" height="245" style="width:3.427in;height:2.552in" id="_x0000_i1028" src="cid:image004.png@01D69580.D12BCEF0"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">So i think the problem comes from the attribute path on midpoint (the extended one):</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><img border="0" width="700" height="23" style="width:7.2916in;height:.2395in" id="_x0000_i1029" src="cid:image005.png@01D69580.D12BCEF0"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Has anyone already tried to use an extended attribute in the first correlation path?</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Could you help me?</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">Thank you and regards,</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Andrea Picconi</span></b><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p style="margin-bottom:12.0pt"><i><span style="font-size:10.0pt;font-family:"Arial",sans-serif">IAM (Identity Access Management)</span></i><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
<br>
<br>
<o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"><img border="0" width="136" height="33" style="width:1.4166in;height:.3437in" id="_x0000_i1030" src="cid:image006.png@01D69580.D12BCEF0" alt="Innovery"></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
Skype: precons<br>
T: +39 06 51963439 (int. 196) <br>
<br>
<span style="color:black">Strada Quattro Palazzina A6 c/o Centro Direzionale Milanofiori, 20057 Assago (MI).</span><br>
<a href="http://www.innovery.net/" target="_blank"><span lang="EN-US" style="color:#0563C1">www.innovery.net</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif"> | T: +39 06 519 63 439</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
<br>
<o:p></o:p></span></p>
<pre><span lang="EN-US">_______________________________________________</span><o:p></o:p></pre>
<pre><span lang="EN-US">midPoint mailing list</span><o:p></o:p></pre>
<pre><a href="mailto:midPoint@lists.evolveum.com" target="_blank"><span lang="EN-US">midPoint@lists.evolveum.com</span></a><o:p></o:p></pre>
<pre><a href="https://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank"><span lang="EN-US">https://lists.evolveum.com/mailman/listinfo/midpoint</span></a><o:p></o:p></pre>
</blockquote>
<p style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<pre><span lang="EN-US">_______________________________________________</span><o:p></o:p></pre>
<pre><span lang="EN-US">midPoint mailing list</span><o:p></o:p></pre>
<pre><a href="mailto:midPoint@lists.evolveum.com" target="_blank"><span lang="EN-US">midPoint@lists.evolveum.com</span></a><o:p></o:p></pre>
<pre><a href="https://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank"><span lang="EN-US">https://lists.evolveum.com/mailman/listinfo/midpoint</span></a><o:p></o:p></pre>
</blockquote>
<pre><span lang="EN-US">-- </span><o:p></o:p></pre>
<pre><span lang="EN-US">Ivan Noris</span><o:p></o:p></pre>
<pre><span lang="EN-US">Senior Identity Engineer</span><o:p></o:p></pre>
<pre><span lang="EN-US">evolveum.com</span><o:p></o:p></pre>
<p style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<pre><span lang="EN-US">_______________________________________________</span><o:p></o:p></pre>
<pre><span lang="EN-US">midPoint mailing list</span><o:p></o:p></pre>
<pre><a href="mailto:midPoint@lists.evolveum.com" target="_blank"><span lang="EN-US">midPoint@lists.evolveum.com</span></a><o:p></o:p></pre>
<pre><a href="https://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank"><span lang="EN-US">https://lists.evolveum.com/mailman/listinfo/midpoint</span></a><o:p></o:p></pre>
</blockquote>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>midPoint mailing list<o:p></o:p></pre>
<pre><a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><o:p></o:p></pre>
<pre><a href="https://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre>Ivan Noris<o:p></o:p></pre>
<pre>Senior Identity Engineer<o:p></o:p></pre>
<pre>evolveum.com<o:p></o:p></pre>
</div>
</div>
</div>
</blockquote>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
<br>
<br>
<o:p></o:p></span></p>
</div>
</div>
</body>
</html>