<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:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:"Calibri Light";
panose-1:2 15 3 2 2 2 4 3 2 4;}
@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;
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.titrecar
{mso-style-name:titrecar;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;
mso-fareast-language:EN-US;}
span.EmailStyle25
{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 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1578514345;
mso-list-template-ids:841613458;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l1
{mso-list-id:2013486836;
mso-list-type:hybrid;
mso-list-template-ids:59530782 135004161 135004163 135004165 135004161 135004163 135004165 135004161 135004163 135004165;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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 bgcolor="white" lang="FR-BE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">Ok is working now<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">The example is there
<a href="https://github.com/Evolveum/midpoint/blob/master/samples/objects/user-template-complex.xml">
https://github.com/Evolveum/midpoint/blob/master/samples/objects/user-template-complex.xml</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext">The code is also present in
<a href="https://wiki.evolveum.com/display/midPoint/Synchronization+Examples">https://wiki.evolveum.com/display/midPoint/Synchronization+Examples</a>
</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">User Template</span><span lang="EN-US" style="color:windowtext"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"><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><span lang="EN-US" style="color:windowtext;mso-fareast-language:FR-BE">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:FR-BE"> midPoint [mailto:midpoint-bounces@lists.evolveum.com]
<b>On Behalf Of </b>Ivan Noris<br>
<b>Sent:</b> jeudi 9 novembre 2017 13:12<br>
<b>To:</b> midpoint@lists.evolveum.com<br>
<b>Subject:</b> Re: [midPoint] objectTemplate account create base on account fail<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hi Serge,<o:p></o:p></p>
<p>can you specify exact file/sample where this was?<o:p></o:p></p>
<p>I have not used direct account assignment, but just roles, in the object template, but I can see this:<o:p></o:p></p>
<p>samples/demo/user-template.xml<o:p></o:p></p>
<p> <mapping><br>
<description>A hack to avoid feedback to HR feed - deleting accounts because they are not assigned</description><br>
<strength>strong</strength><br>
<source><br>
<path>employeeType</path><br>
</source><br>
<expression><br>
<value><br>
<!--<assignment>--><br>
<construction><br>
<resourceRef oid="8844dcca-775d-11e2-a0ac-001e8c717e5b" type="c:ResourceType"/><br>
</construction><br>
<!--</assignment>--><br>
</value> <br>
</expression><br>
<target><br>
<path>assignment</path><br>
</target><br>
<condition><br>
<script><br>
<code>employeeType != null</code><br>
</script><br>
</condition><br>
</mapping><o:p></o:p></p>
<p>See how the <assignment> element is commented out; hope this is the problem.<o:p></o:p></p>
<p>If you specify the sample from which you have seen the original construction, we can have a look at it.<o:p></o:p></p>
<p>Best regards,<o:p></o:p></p>
<p>Ivan<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 08.11.2017 12:43, HAQUET Serge wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">I get this example from midpoint git and it didn’t work , look like missing something to validate the xml</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><mapping></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> <strength>strong</strength></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> <expression></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> <value></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> <assignment></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> <construction></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> <resourceRef oid="0e70c40e-d952-45ee-9780-10845afdc126" type="ResourceType"/></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </construction></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </assignment></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </value> </span>
<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </expression></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> <target></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> <path>assignment</path></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </target></span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </mapping></span><o:p></o:p></p>
<p class="MsoNormal"><b><span lang="EN-US"> </span></b><o:p></o:p></p>
<p class="MsoNormal"><b><span lang="EN-US">Midpoint version :</span></b><span lang="EN-US"> 3.6</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><b><span lang="EN-US">Goal :</span></b><span lang="EN-US"> when create new user , create a new account an link it base on the some resources</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><b><span lang="EN-US">Actions:</span></b><o:p></o:p></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoNormal" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US">using the Complex User Template , from the midpoint git.</span><o:p></o:p></li><li class="MsoNormal" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US">only use the account create part.</span><o:p></o:p></li><li class="MsoNormal" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US">import the file in midpoint</span><o:p></o:p></li><li class="MsoNormal" style="margin-left:0cm;mso-list:l1 level1 lfo3"><span lang="EN-US">create new user</span><o:p></o:p></li></ul>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US">Error (see file)</span></b><span lang="EN-US"> :
</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE">Message</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE">Item {<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}assignment
has no definition (in container value CTD ({.../common/common-3}AssignmentType))while parsing ( {...common/common-3}assignment => ( {...common/common-3}construction => ( {...common/common-3}resourceRef => ( oid => parser ValueParser(DOMa, oid: 0e70c40e-d952-45ee-9780-10845afdc126)
type => parser ValueParser(DOMa, type: ResourceType) ) ) ) )</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><b><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE">When
</span></b><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE">: trying to create user</span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"> </span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#333333;mso-fareast-language:FR-BE"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<div>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td width="40%" valign="top" style="width:40.0%;border:none;border-right:solid #FECB00 1.0pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:FR-BE"> <img border="0" width="300" height="107" style="width:3.125in;height:1.1145in" id="_x0000_i1025" src="cid:image001.png@01D35961.C1F735E0">
<o:p></o:p></span></p>
</td>
<td width="60%" valign="top" style="width:60.0%;padding:.75pt .75pt .75pt .75pt">
<p><span class="titrecar"><b><span lang="EN-US" style="font-size:15.0pt;font-family:"Calibri Light",sans-serif;color:#0080BF">Serge HAQUET</span></b></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
</span><span class="MsoSubtleReference"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#0A00BE">Project Analyst</span></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri Light",sans-serif;color:#164397">Operations - Project Analyst</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light",sans-serif">Avenue des Arts 21, 1000 Bruxelles -
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#0080BF"><a href="http://cirb.brussels/"><span style="color:#0080BF">cirb.brussels</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light",sans-serif">
- </span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#0080BF"><a href="http://cirb.brussels/disclaimer-1"><span style="color:#0080BF">disclaimer</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light",sans-serif"><br>
T +32 2 801 12 41 </span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#FECB00">|
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light",sans-serif">G +32 497 44 44 99
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light",sans-serif;color:#FECB00">|
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light",sans-serif">Helpdesk +32 2 801 00 00
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Calibri Light",sans-serif;color:#61C250">Be green, leave it on the screen !</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> <a href="https://www.linkedin.com/company/cirb_cibg"><span style="text-decoration:none"><img border="0" width="25" height="25" style="width:.2604in;height:.2604in" id="_x0000_i1026" src="cid:image002.png@01D35961.C1F735E0"></span></a> <a href="https://twitter.com/CIRB_CIBG"><span style="text-decoration:none"><img border="0" width="25" height="25" style="width:.2604in;height:.2604in" id="_x0000_i1027" src="cid:image003.png@01D35961.C1F735E0"></span></a> <a href="http://www.environnement.brussels/thematiques/ville-durable/le-label-entreprise-ecodynamique"><span style="text-decoration:none"><img border="0" width="25" height="25" style="width:.2604in;height:.2604in" id="_x0000_i1028" src="cid:image004.jpg@01D35961.C1F735E0"></span></a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:FR-BE"><br>
<br>
<br>
<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">midPoint@lists.evolveum.com</a><o:p></o:p></pre>
<pre><a href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:FR-BE"><br>
<br>
<o:p></o:p></span></p>
<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>
</body>
</html>