<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Antoine,<br>
<br>
I would like to explain this a bit deeper. Even though the CVSFile
connector that we are currently using was originally created by one
of our team members it comes from the OpenICF project. It was
created back in the "dark ages" when the only thing that the IDM
systems were able to manage were accounts. So, the connector is also
hard-coded to support only accounts. Yes, there are some tricks to
make it work, but it is ugly and it is in fact just abuse of the old
code. The systemic solution would be to either extend (or re-write)
the old CSVFile connector or to join forces with the ConnId CSVDir
connector (<a class="moz-txt-link-freetext" href="https://github.com/Tirasa/ConnIdCSVDirBundle">https://github.com/Tirasa/ConnIdCSVDirBundle</a>). I would
actually prefer the latter option. Cooperation is almost always a
better strategy. The thing is, that nobody really tried the ConnId
CSVDir connector with midPoint. It is a ConnId connector so
theoretically it should be compatible. But theoretically there is no
difference between the theory and practice while practically there
is a great deal of difference. Therefore if you have the capacity
you might want to experiment with the CSVDir connector and report
back the results. That will be a great help to midPoint community.<br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<br>
<br>
<div class="moz-cite-prefix">On 05/17/2016 03:55 PM, Ivan Noris
wrote:<br>
</div>
<blockquote cite="mid:573B22BD.40409@evolveum.com" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
Hi Antoine,<br>
<br>
CSV connector supports only accounts, i.e. kind=account.<br>
So if you want to import something which is not account, but
organization or role, you have to pretend it's account.<br>
But it will work.<br>
<br>
The schema handling should be configured for objectClass
ri:AccountObjectClass, kind=account (which is default) and intent
- or if one CSV file will be used only for roles and nothing else,
intent may be default.<br>
<br>
<br>
Synchronization part should look like this:<br>
<objectSynchronization><br>
<name>Foo</name><br>
<objectClass>ri:AccountObjectClass</objectClass><br>
<kind>account</kind><br>
<intent>default</intent><br>
<b>
<focusType>c:RoleType</focusType> <!-- or
c:OrgType --><!-- Focus object type to correlate instead
of UserType!!! --></b><br>
<enabled>true</enabled><br>
<br>
<correlation><br>
<q:equal><br>
<q:matching>polyStringNorm</q:matching><br>
<q:path>c:name</q:path><br>
<expression><br>
...<br>
</expression><br>
</q:equal><br>
</correlation><br>
<reaction><br>
<situation>linked</situation><br>
<synchronize>true</synchronize><br>
</reaction><br>
<reaction><br>
<situation>deleted</situation><br>
<synchronize>true</synchronize><br>
<action
ref=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink">"http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink"</a>/><br>
</reaction><br>
<reaction><br>
<situation>unlinked</situation><br>
<synchronize>true</synchronize><br>
<action
ref=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#link">"http://midpoint.evolveum.com/xml/ns/public/model/action-3#link"</a>/><br>
</reaction><br>
<reaction><br>
<situation>unmatched</situation><br>
<synchronize>true</synchronize><br>
<action
ref=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus">"http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus"</a>/><br>
</reaction><br>
</objectSynchronization><br>
<br>
Regards,<br>
Ivan<br>
<br>
<div class="moz-cite-prefix">On 05/17/2016 03:42 PM, LECOMTE
ANTOINE wrote:<br>
</div>
<blockquote
cite="mid:e15ce3ffad1f47ed87121620939e14f5@BPMBX2013-02.univ-lyon1.fr"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{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:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1230459037;
mso-list-type:hybrid;
mso-list-template-ids:-2079713728 1887068394 67895299 67895301 67895297 67895299 67895301 67895297 67895299 67895301;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F06E;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></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"><span lang="EN-US">Hi,<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">We can’t figure out
how to import Role or Organization through the CSV
Connector.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">We tried multiples
values for kind/intent/ObjectClass/focusType but we don’t
pass the synchronization.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The shadows are
created with the status UNMATCHED.<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">We are using Midpoint
v. 3.3.1.<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"><span lang="EN-US">Do someone have a
resource example or a link explaining how to import Role
with the CSV Connector ?<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"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR"
lang="EN-US">Thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR"
lang="EN-US">--<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR"
lang="EN-US">Antoine Lecomte.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ing. Ivan Noris
Senior Identity Management Engineer & IDM Architect
evolveum.com evolveum.com/blog/
___________________________________________________
"Semper ID(e)M Vix."
</pre>
<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>