<div dir="ltr"><div>Hi everyone,</div><div><br></div>Could you please help me?  Organizations added only as Shadows. How can I add them into real Organizational Structure in to Midpoint?<div>I asked this question before and nobody answered. There is no documentation about this problem.<br><div><br></div><div>Thanks in advance<br><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Dilek Gider</b> <span dir="ltr"><<a href="mailto:dilek.gider@basistek.com">dilek.gider@basistek.com</a>></span><br>Date: Wed, Jan 18, 2017 at 4:06 PM<br>Subject: Import or Recon Organization is only creates Shadow, nor Organizational Structure<br>To: midPoint General Discussion <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>><br><br><br><div dir="ltr">Hi,<div><br></div><div>I have ScriptedSQL Connector. I am getting organization structure from database these attrbutes: name, displayName and parentOrgRef</div><div>I tried import and reconciliation type tasks, Shadows are creating successfully but Organizations are not creating. </div><div>I tried both <kind>account</kind> and <kind>generic</kind> on SchemaHandling. Nothing changes. </div><div>How can I import or reconcile organizations and build organization structure  from database? My datas are as follows:</div><div><br></div><div><div>id<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                            </span>name<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                                            </span>parent_id</div><div>0101<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                  </span>XXX.A.Ş.<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                                                     </span>0000</div><div>0102<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                   YYY</span> A.Ş.<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                                                    </span>0000</div><div>0103<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                   ZZZ</span> A.Ş.<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                                                    </span>0000</div><div>0200<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                   CCCCC</span> AŞ<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                                            </span>0000</div><div>0201<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                     </span>SSSSSS<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                                                      </span>0000</div><div>50001365<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>MANAGEMENT<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                                    </span>0101</div><div>50001366<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>ASİSTANCE<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                                            </span>0101</div><div>50001367<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">       </span><span class="m_2323630289614600708gmail-Apple-tab-span">DRIVERS </span><span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                                               </span>0101</div><div>50002780<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>COMMUNICATION<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                                 </span>0102</div><div>50004775<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>MANAGEMENT<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                 </span><span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                       </span>0102</div><div>50006930<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>MANAGEMENT<span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                 </span><span class="m_2323630289614600708gmail-Apple-tab-span" style="white-space:pre-wrap">                       </span>0103</div></div><div><br></div><div><div>   <xsd:complexType name="<wbr>CustomOrganizationObjectClass"<wbr>></div><div>               <xsd:annotation></div><div>                  <xsd:appinfo></div><div>                     <ra:resourceObject/></div><div>                     <ra:identifier>icfs:uid</ra:<wbr>identifier></div><div>                     <ra:secondaryIdentifier>icfs:<wbr>name</ra:secondaryIdentifier></div><div>                     <ra:displayNameAttribute><wbr>icfs:name</ra:<wbr>displayNameAttribute></div><div>                     <ra:namingAttribute>icfs:<wbr>name</ra:namingAttribute></div><div>                     <ra:nativeObjectClass><wbr>Organization</ra:<wbr>nativeObjectClass></div><div>                  </xsd:appinfo></div><div>               </xsd:annotation></div><div>               <xsd:sequence></div><div>                  <xsd:element minOccurs="0" name="displayName" type="xsd:string"></div><div>                     <xsd:annotation></div><div>                        <xsd:appinfo></div><div>                           <a:displayOrder>120</a:<wbr>displayOrder></div><div>                           <ra:frameworkAttributeName><wbr>displayName</ra:<wbr>frameworkAttributeName></div><div>                        </xsd:appinfo></div><div>                     </xsd:annotation></div><div>                  </xsd:element></div><div>                  <xsd:element minOccurs="0" name="parentOrg" type="xsd:string"></div><div>                     <xsd:annotation></div><div>                        <xsd:appinfo></div><div>                           <a:displayOrder>130</a:<wbr>displayOrder></div><div>                           <ra:frameworkAttributeName><wbr>parentOrg</ra:<wbr>frameworkAttributeName></div><div>                        </xsd:appinfo></div><div>                     </xsd:annotation></div><div>                  </xsd:element></div><div>                  <xsd:element minOccurs="0" name="description" type="xsd:string"></div><div>                     <xsd:annotation></div><div>                        <xsd:appinfo></div><div>                           <a:displayOrder>140</a:<wbr>displayOrder></div><div>                           <ra:frameworkAttributeName><wbr>description</ra:<wbr>frameworkAttributeName></div><div>                        </xsd:appinfo></div><div>                     </xsd:annotation></div><div>                  </xsd:element></div><div>                  <xsd:element ref="icfs:name"></div><div>                     <xsd:annotation></div><div>                        <xsd:appinfo></div><div>                           <a:displayName>ConnId Name</a:displayName></div><div>                           <a:displayOrder>110</a:<wbr>displayOrder></div><div>                           <ra:frameworkAttributeName>__<wbr>NAME__</ra:<wbr>frameworkAttributeName></div><div>                        </xsd:appinfo></div><div>                     </xsd:annotation></div><div>                  </xsd:element></div><div>                  <xsd:element minOccurs="0" name="name" type="xsd:string"></div><div>                     <xsd:annotation></div><div>                        <xsd:appinfo></div><div>                           <a:displayOrder>150</a:<wbr>displayOrder></div><div>                           <ra:frameworkAttributeName><wbr>name</ra:<wbr>frameworkAttributeName></div><div>                        </xsd:appinfo></div><div>                     </xsd:annotation></div><div>                  </xsd:element></div><div>                  <xsd:element minOccurs="0" ref="icfs:uid"></div><div>                     <xsd:annotation></div><div>                        <xsd:appinfo></div><div>                           <a:displayName>ConnId UID</a:displayName></div><div>                           <a:displayOrder>100</a:<wbr>displayOrder></div><div>                           <a:access>read</a:access></div><div>                        </xsd:appinfo></div><div>                     </xsd:annotation></div><div>                  </xsd:element></div><div>               </xsd:sequence></div><div>            </xsd:complexType></div></div><div><br></div><div><br></div><div><div>  <schemaHandling></div><div>      <objectType></div><div>         <kind>account</kind></div><div>         <displayName>OrgType</<wbr>displayName></div><div>         <default>true</default></div><div>         <objectClass>ri:<wbr>CustomOrganizationObjectClass<<wbr>/objectClass></div><div>         <attribute></div><div>            <c:ref>icfs:uid</c:ref></div><div>            <displayName>Entry UUID</displayName></div><div>            <limitations></div><div>               <access></div><div>                  <read>true</read></div><div>               </access></div><div>            </limitations></div><div>         </attribute></div><div>         <attribute></div><div>            <c:ref>icfs:name</c:ref></div><div>            <displayName>Organization Id</displayName></div><div>            <limitations></div><div>               <minOccurs>0</minOccurs></div><div>               <access></div><div>                  <read>true</read></div><div>                  <add>true</add></div><div>                  <modify>true</modify></div><div>               </access></div><div>            </limitations></div><div>            <tolerant>false</tolerant></div><div>            <exclusiveStrong>false</<wbr>exclusiveStrong></div><div>            <outbound></div><div>               <authoritative>true</<wbr>authoritative></div><div>               <exclusive>false</exclusive></div><div>               <strength>normal</strength></div><div>               <source></div><div>                  <c:path>$focus/name</c:path></div><div>               </source></div><div>            </outbound></div><div>            <inbound></div><div>               <authoritative>true</<wbr>authoritative></div><div>               <exclusive>false</exclusive></div><div>               <strength>normal</strength></div><div>               <target></div><div>                  <c:path>$focus/name</c:path></div><div>               </target></div><div>            </inbound></div><div>         </attribute></div><div>         <attribute></div><div>            <c:ref>ri:name</c:ref></div><div>            <displayName>Organization Name</displayName></div><div>            <tolerant>false</tolerant></div><div>            <exclusiveStrong>false</<wbr>exclusiveStrong></div><div>            <outbound></div><div>               <authoritative>true</<wbr>authoritative></div><div>               <exclusive>false</exclusive></div><div>               <strength>normal</strength></div><div>               <source></div><div>                  <c:path>$focus/displayName</c:<wbr>path></div><div>               </source></div><div>            </outbound></div><div>            <inbound></div><div>               <authoritative>true</<wbr>authoritative></div><div>               <exclusive>false</exclusive></div><div>               <strength>normal</strength></div><div>               <target></div><div>                  <c:path>$focus/displayName</c:<wbr>path></div><div>               </target></div><div>            </inbound></div><div>         </attribute></div><div>         <attribute></div><div>            <c:ref>ri:parentOrg</c:ref></div><div>            <displayName>Parent Org Id</displayName></div><div>            <tolerant>false</tolerant></div><div>            <exclusiveStrong>false</<wbr>exclusiveStrong></div><div>            <outbound></div><div>               <authoritative>true</<wbr>authoritative></div><div>               <exclusive>false</exclusive></div><div>               <strength>normal</strength></div><div>               <source></div><div>                  <c:path>$focus/costCenter</c:<wbr>path></div><div>               </source></div><div>            </outbound></div><div>            <inbound></div><div>               <authoritative>true</<wbr>authoritative></div><div>               <exclusive>false</exclusive></div><div>               <strength>normal</strength></div><div>               <target></div><div>                  <c:path>$focus/costCenter</c:<wbr>path></div><div>               </target></div><div>            </inbound></div><div>         </attribute></div><div>      </objectType></div><div>   </schemaHandling></div><div>   <capabilities></div><div>      <cachingMetadata></div><div>         <retrievalTimestamp>2017-01-<wbr>18T14:32:39.006+02:00</<wbr>retrievalTimestamp></div><div>         <serialNumber><wbr>31a0960a98ab18d-<wbr>4afc49b08ce181c6</<wbr>serialNumber></div><div>      </cachingMetadata></div><div>      <native xmlns:cap="<a href="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>resource/capabilities-3</a>"></div><div>         <cap:<wbr>addRemoveAttributeValues/></div><div>         <cap:activation></div><div>            <cap:status/></div><div>            <cap:lockoutStatus/></div><div>         </cap:activation></div><div>         <cap:credentials></div><div>            <cap:password></div><div>               <cap:returnedByDefault>false<<wbr>/cap:returnedByDefault></div><div>            </cap:password></div><div>         </cap:credentials></div><div>         <cap:liveSync/></div><div>         <cap:testConnection/></div><div>         <cap:create/></div><div>         <cap:read/></div><div>         <cap:update/></div><div>         <cap:delete/></div><div>         <cap:script></div><div>            <cap:host></div><div>               <cap:type>connector</cap:<wbr>type></div><div>            </cap:host></div><div>         </cap:script></div><div>      </native></div><div>   </capabilities></div><div>   <synchronization></div><div>      <objectSynchronization></div><div>         <name>Org Unit</name></div><div>         <objectClass>ri:<wbr>CustomOrganizationObjectClass<<wbr>/objectClass></div><div>         <kind>account</kind></div><div>         <intent>default</intent></div><div>         <focusType>c:OrgType</<wbr>focusType></div><div>         <enabled>true</enabled></div><div>         <correlation></div><div>            <q:description>Correlation expression.</q:description></div><div>            <q:equal></div><div>               <q:path>c:name</q:path></div><div>               <expression></div><div>                  <c:path>declare namespace icfs='<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" target="_blank">http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>connector/icf-1/resource-<wbr>schema-3</a>'; $shadow/attributes/icfs:name</<wbr>c:path></div><div>               </expression></div><div>            </q:equal></div><div>         </correlation></div><div>         <reconcile>false</reconcile></div><div>         <reaction></div><div>            <name>Linked</name></div><div>            <situation>linked</situation></div><div>            <synchronize>true</<wbr>synchronize></div><div>            <reconcile>false</reconcile></div><div>         </reaction></div><div>         <reaction></div><div>            <name>Deleted</name></div><div>            <situation>deleted</situation></div><div>            <synchronize>true</<wbr>synchronize></div><div>            <reconcile>false</reconcile></div><div>            <action></div><div>               <name>Unlink</name></div><div>               <handlerUri></div><div><a href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink" target="_blank">http://midpoint.evolveum.com/<wbr>xml/ns/public/model/action-3#<wbr>unlink</a></div><div></handlerUri></div><div>            </action></div><div>         </reaction></div><div>         <reaction></div><div>            <name>Unlinked</name></div><div>            <situation>unlinked</<wbr>situation></div><div>            <synchronize>true</<wbr>synchronize></div><div>            <reconcile>false</reconcile></div><div>            <action></div><div>               <name>Link</name></div><div>               <handlerUri></div><div><a href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#link" target="_blank">http://midpoint.evolveum.com/<wbr>xml/ns/public/model/action-3#<wbr>link</a></div><div></handlerUri></div><div>            </action></div><div>         </reaction></div><div>         <reaction></div><div>            <name>Unmatched</name></div><div>            <situation>unmatched</<wbr>situation></div><div>            <synchronize>true</<wbr>synchronize></div><div>            <reconcile>false</reconcile></div><div>            <objectTemplateRef oid="c0c010c0-d34d-b33f-f00d-<wbr>777222555111" type="c:ObjectTemplateType"/></div><div>            <action></div><div>               <name>Add focus</name></div><div>               <handlerUri></div><div><a href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus" target="_blank">http://midpoint.evolveum.com/<wbr>xml/ns/public/model/action-3#<wbr>addFocus</a></div><div></handlerUri></div><div>            </action></div><div>         </reaction></div><div>      </objectSynchronization></div></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
</div><br></div></div></div></div>