<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>since you are trying to import files from a csv file, as I
understand it, you would need inbound mappings, translating the
values from the fields in the csv file to midPoint attributes.</p>
<p>Furthermore, you might want to have a look at the samples on
github:
<a class="moz-txt-link-freetext" href="https://github.com/Evolveum/midpoint-samples/tree/master/samples/resources/csv">https://github.com/Evolveum/midpoint-samples/tree/master/samples/resources/csv</a></p>
<p>Hope that helps.</p>
<p>Marc</p>
<p><br>
</p>
<div class="moz-cite-prefix">Am 02.02.22 um 13:21 schrieb Mercedes
Oncina Deltell via midPoint:<br>
</div>
<blockquote type="cite"
cite="mid:102cbf11-fbb1-5898-55e1-b574b22f5290@um.es">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>I have already defined the schema like this:</p>
<p><i><font size="2"><xsd:schema xmlns:xsd=<a
class="moz-txt-link-rfc2396E"
href="http://www.w3.org/2001/XMLSchema"
moz-do-not-send="true">"http://www.w3.org/2001/XMLSchema"</a>
xmlns:a=<a class="moz-txt-link-rfc2396E"
href="http://prism.evolveum.com/xml/ns/public/annotation-3"
moz-do-not-send="true">"http://prism.evolveum.com/xml/ns/public/annotation-3"</a>
xmlns:ra=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3"
moz-do-not-send="true">"http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3"</a>
xmlns:tns=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
moz-do-not-send="true">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>
elementFormDefault="qualified"
targetNamespace=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
moz-do-not-send="true">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>><br>
<xsd:import namespace=<a
class="moz-txt-link-rfc2396E"
href="http://prism.evolveum.com/xml/ns/public/annotation-3"
moz-do-not-send="true">"http://prism.evolveum.com/xml/ns/public/annotation-3"</a>/><br>
<xsd:import
namespace=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3"
moz-do-not-send="true">"http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3"</a>/><br>
<xsd:complexType
name="AccountObjectClass"><br>
<xsd:annotation><br>
<xsd:appinfo><br>
<ra:resourceObject/><br>
<ra:identifier
xmlns:ri=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
moz-do-not-send="true">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:UUID</ra:identifier><br>
<ra:displayNameAttribute
xmlns:ri=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
moz-do-not-send="true">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:UUID</ra:displayNameAttribute><br>
<ra:namingAttribute
xmlns:ri=<a class="moz-txt-link-rfc2396E"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
moz-do-not-send="true">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:UUID</ra:namingAttribute><br>
<b><ra:nativeObjectClass>__ACCOUNT__</ra:nativeObjectClass></b><br>
<b><ra:kind>account</ra:kind></b><br>
<ra:default>true</ra:default><br>
</xsd:appinfo><br>
</xsd:annotation><br>
<xsd:sequence><br>
<xsd:element minOccurs="0"
name="CLAVE" type="xsd:string"><br>
<xsd:annotation><br>
<xsd:appinfo><br>
<a:displayOrder>120</a:displayOrder><br>
<ra:nativeAttributeName>CLAVE</ra:nativeAttributeName><br>
<ra:frameworkAttributeName>CLAVE</ra:frameworkAttributeName><br>
</xsd:appinfo><br>
</xsd:annotation><br>
</xsd:element><br>
<xsd:element minOccurs="0"
name="USERNAME" type="xsd:string"><br>
<xsd:annotation><br>
<xsd:appinfo><br>
<a:displayOrder>130</a:displayOrder><br>
<ra:nativeAttributeName>USERNAME</ra:nativeAttributeName><br>
<ra:frameworkAttributeName>USERNAME</ra:frameworkAttributeName><br>
</xsd:appinfo><br>
</xsd:annotation><br>
</xsd:element><br>
<xsd:element name="UUID"
type="xsd:string"><br>
<xsd:annotation><br>
<xsd:appinfo><br>
<a:displayOrder>100</a:displayOrder><br>
<ra:nativeAttributeName>UUID</ra:nativeAttributeName><br>
<ra:frameworkAttributeName>__NAME__</ra:frameworkAttributeName><br>
</xsd:appinfo><br>
</xsd:annotation><br>
</xsd:element><br>
</xsd:sequence><br>
</xsd:complexType><br>
</xsd:schema></font></i></p>
<p><br>
</p>
<div class="moz-cite-prefix">El 02/02/2022 a las 12:00, <a
class="moz-txt-link-abbreviated moz-txt-link-freetext"
href="mailto:midpoint-request@lists.evolveum.com"
moz-do-not-send="true">midpoint-request@lists.evolveum.com</a>
escribió: </div>
<blockquote type="cite"
cite="mid:mailman.5.1643799602.2614.midpoint@lists.evolveum.com">
<pre class="moz-quote-pre" wrap="">----------------------------------------------------------------------
Message: 3
Date: Wed, 02 Feb 2022 09:33:22 +0100
From: "Rainer Herbst" <a class="moz-txt-link-rfc2396E" href="mailto:rainer.herbst@aip.de" moz-do-not-send="true"><rainer.herbst@aip.de></a>
To: "midPoint General Discussion" <a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com" moz-do-not-send="true"><midpoint@lists.evolveum.com></a>
Subject: Re: [midPoint] CSV resource import fails: No object class
found for the shadow
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:ximss-2986569@cgpro.aip.de" moz-do-not-send="true"><ximss-2986569@cgpro.aip.de></a>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Hi!
My unerstandig is that you need to declare what kind of an object the
imported "something" is. Normally it is "account" and it should be somewhere
in the schema and schema handling sections:
<ra:resourceObject/>
<ra:identifier
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" moz-do-not-send="true">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:NachnameVornameVertragsende</ra:identifier>
<ra:displayNameAttribute
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" moz-do-not-send="true">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:NachnameVornameVertragsende</ra:displayNameAttribute>
<ra:namingAttribute
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" moz-do-not-send="true">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>>ri:NachnameVornameVertragsende</ra:namingAttribute>
<ra:nativeObjectClass>__ACCOUNT__</ra:nativeObjectClass>
<ra:kind>account</ra:kind>
HTH!
</pre>
<div class="moz-txt-sig">
<pre>On Mi, 2 Feb 2022 09:17:47 +0100
Mercedes Oncina Deltell via midPoint <a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com" moz-do-not-send="true"><midpoint@lists.evolveum.com></a> wrote:
</pre>
</div>
<blockquote type="cite" style="color: #007cff;">
<pre class="moz-quote-pre" wrap="">I am starting with midPoint trying to assess if it is useful for our
goal of implementing an IAM.
I have defined a CSV resource, with the outbound mappings and I can
see the existing records in the file, but when I try to import a
record, this message appears:
/Operation: Import object (GUI)//
//Message: Could not import account
shadow:93312157-c92c-4d70-9fc4-33eb298b018e(JI34ji456iE4650JT2)//
//Error: No object class found for the shadow/
I am new to the tool and although I have read the entire midPoint
manual, I cannot find any information related to this error.
Can someone advise me where the error can be?
--
Mercedes Oncina Deltell
Servicio de Infraestructuras TICS
ATICA - Universidad de Murcia
Telf: +34 868881983
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Viele Grüße,
Rainer Herbst
Leiter IT-Service
Phone: +49 331 7499-257
e-mail: <a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:rainer.herbst@aip.de" moz-do-not-send="true">rainer.herbst@aip.de</a>
<a class="moz-txt-link-freetext" href="https://www.aip.de" moz-do-not-send="true">https://www.aip.de</a>
-----------------------------------------------------------------------------------------------
Leibniz-Institut für Astrophysik Potsdam (AIP)
An der Sternwarte 16, 14482 Potsdam
Vorstand: Prof. Dr. Matthias Steinmetz, Wolfram Rosenbach
Stiftung bürgerlichen Rechts
Stiftungsverzeichnis Brandenburg: 26 742-00/7026
-----------------------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3646 bytes
Desc: not available
URL: <a class="moz-txt-link-rfc2396E" href="https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/ece9445a/attachment-0001.bin" moz-do-not-send="true"><https://lists.evolveum.com/pipermail/midpoint/attachments/20220202/ece9445a/attachment-0001.bin></a>
------------------------------
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Mercedes Oncina Deltell
Servicio de Infraestructuras TICS
ATICA - Universidad de Murcia
Telf: +34 868881983</pre>
<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>
<pre class="moz-signature" cols="72">--
Marc Füller
Consultant
DAASI International GmbH
Europaplatz 3
D-72072 Tübingen
Germany
phone: +49 7071 407109-0
fax: +49 7071 407109-9
email: <a class="moz-txt-link-abbreviated" href="mailto:marc.fueller@daasi.de">marc.fueller@daasi.de</a>
web: <a class="moz-txt-link-abbreviated" href="http://www.daasi.de">www.daasi.de</a>
Sitz der Gesellschaft: Tübingen
Registergericht: Amtsgericht Stuttgart, HRB 382175
Geschäftsleitung: Peter Gietz</pre>
</body>
</html>