<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=koi8-r">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
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:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
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:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1864241556;
mso-list-type:hybrid;
mso-list-template-ids:-2023057858 68747279 68747289 68747291 68747279 68747289 68747291 68747279 68747289 68747291;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
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 lang="RU" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Good afternoon, community!<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">I need to create user avatar from database table resource. What I did are:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">Created resource of type DatabaseTableConnector and configured it with postgresql table. I have a “bytea” column named “avatar” for avatar.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">Configured Schema Handling with text:<o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><attribute><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <c:ref>ri:avatar</c:ref><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <displayName>avatar</displayName><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <tolerant>true</tolerant><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <exclusiveStrong>false</exclusiveStrong><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <inbound><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <authoritative>true</authoritative><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <exclusive>false</exclusive><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <strength>normal</strength><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <target><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <c:path>$user/jpegPhoto</c:path><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> </target><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> </inbound><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> </attribute><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><reaction><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <situation>unmatched</situation><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <reconcile>false</reconcile><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <objectTemplateRef oid="c0c010c0-d34d-b33f-f00d-777222555781" type="c:ObjectTemplateType"><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> </span><span lang="NO-NYN"><targetName><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="NO-NYN"> <t:orig>User Template Postgre HR KTGA</t:orig><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="NO-NYN"> <t:norm>user template postgre hr ktga</t:norm><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="NO-NYN"> </span><span lang="EN-US"></targetName><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> </objectTemplateRef><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <action><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> <handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#addUser</handlerUri><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> </action><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"> </reaction><o:p></o:p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">Created object template:<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"><source><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <c:path>$user/nickName</c:path><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </source><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <source><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <c:path>$user/organization</c:path><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </source><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <source><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <c:path>$user/organizationalUnit</c:path><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </source><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <source><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <c:path>$user/jpegPhoto</c:path><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </source><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">…<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US"><span style="mso-list:Ignore">4.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US">Created import task. In fact, midpoint created user but without photo/avatar.<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">Any ideas how to do that?<o:p></o:p></span></p>
</div>
</body>
</html>