<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi,<br></div><div><br></div><div>sadly that didn't make any difference.<br></div><div><br></div><div>I might add that on the results page I can see that the account on Resource1 is processed then the flow goes back to processing projections on focus and then only the account on Resource2 is created.<br></div><div><br></div><div>Same story for history of User: first is Discovery for account on Resource1 with Modify User containing new 'data', and as a last history item is Add object where Resource2 account shadow is added, when checking 'View object data' for that step the 'data' is on user.<br></div><div><br></div><div>Forgot to mention midpoint version, it's 4.0.3.<br></div><div><br></div><div>Raw history from user is as follows:<br></div><div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div><operationExecution id="2"><br></div><div> <timestamp>2021-12-21T09:18:24.027Z</timestamp><br></div><div> <operation><br></div><div> <objectDelta><br></div><div> <t:changeType>modify</t:changeType><br></div><div> <t:objectType>c:UserType</t:objectType><br></div><div> </objectDelta><br></div><div> <executionResult><br></div><div> <operation>com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta</operation><br></div><div> <status>success</status><br></div><div> <importance>normal</importance><br></div><div> <token>1000000000000003028</token><br></div><div> </executionResult><br></div><div> <objectName>9111065688083</objectName><br></div><div> </operation><br></div><div> <operation><br></div><div> <objectDelta><br></div><div> <t:changeType>modify</t:changeType><br></div><div> <t:objectType>c:UserType</t:objectType><br></div><div> </objectDelta><br></div><div> <executionResult><br></div><div> <operation>com.evolveum.midpoint.model.impl.lens.ChangeExecutor.linkShadow</operation><br></div><div> <status>success</status><br></div><div> <importance>normal</importance><br></div><div> <token>1000000000000003029</token><br></div><div> </executionResult><br></div><div> <objectName>9111065688083</objectName><br></div><div> <resourceOid>6d475d6b-8fa7-4fb0-b2de-f311b315339c</resourceOid><br></div><div> <resourceName>Resource1</resourceName><br></div><div> </operation><br></div><div> <status>success</status><br></div><div> <initiatorRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType"><br></div><div> <!-- administrator --><br></div><div> </initiatorRef><br></div><div> <channel><a target="_blank" href="http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#discovery">http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#discovery</a></channel><br></div><div> </operationExecution><br></div><div> <operationExecution id="3"><br></div><div> <timestamp>2021-12-21T09:18:25.798Z</timestamp><br></div><div> <operation><br></div><div> <objectDelta><br></div><div> <t:changeType>add</t:changeType><br></div><div> <t:objectType>c:UserType</t:objectType><br></div><div> </objectDelta><br></div><div> <executionResult><br></div><div> <operation>com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta</operation><br></div><div> <status>success</status><br></div><div> <importance>normal</importance><br></div><div> <token>1000000000000003191</token><br></div><div> </executionResult><br></div><div> <objectName>9111065688083</objectName><br></div><div> </operation><br></div><div> <operation><br></div><div> <objectDelta><br></div><div> <t:changeType>modify</t:changeType><br></div><div> <t:objectType>c:UserType</t:objectType><br></div><div> </objectDelta><br></div><div> <executionResult><br></div><div> <operation>com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta</operation><br></div><div> <status>success</status><br></div><div> <importance>normal</importance><br></div><div> <token>1000000000000003192</token><br></div><div> </executionResult><br></div><div> <objectName>9111065688083</objectName><br></div><div> </operation><br></div><div> <operation><br></div><div> <objectDelta><br></div><div> <t:changeType>modify</t:changeType><br></div><div> <t:objectType>c:UserType</t:objectType><br></div><div> </objectDelta><br></div><div> <executionResult><br></div><div> <operation>com.evolveum.midpoint.model.impl.lens.ChangeExecutor.linkShadow</operation><br></div><div> <status>success</status><br></div><div> <importance>normal</importance><br></div><div> <token>1000000000000003193</token><br></div><div> </executionResult><br></div><div> <objectName>9111065688083</objectName><br></div><div> <resourceOid>4c627e2a-01ab-4139-ba08-9d7c75a0a012</resourceOid><br></div><div> <resourceName>Resource2</resourceName><br></div><div> </operation><br></div><div> <status>success</status><br></div><div> <initiatorRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType"><br></div><div> <!-- administrator --><br></div><div> </initiatorRef><br></div><div> <channel><a target="_blank" href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user">http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user</a></channel><br></div><div> </operationExecution><br></div></blockquote><br><br></div><div><br></div><div id="Zm-_Id_-Sgn" data-zbluepencil-ignore="true" data-sigid="5636858000000187019"><div>Kind Regards,<br></div><div>Kajetan Parzyszek<br></div></div><div class="zmail_extra_hr" style="border-top: 1px solid rgb(204, 204, 204); height: 0px; margin-top: 10px; margin-bottom: 10px; line-height: 0px;"><br></div><div class="zmail_extra" data-zbluepencil-ignore="true"><div><br></div><div id="Zm-_Id_-Sgn1">---- On Mon, 20 Dec 2021 19:33:05 +0100 <b>Chris Woods via midPoint <midpoint@lists.evolveum.com></b> wrote ----<br></div><div><br></div><blockquote style="margin: 0px;"><div><div dir="auto"><div dir="auto">Hi Kajetan, <br></div><div dir="auto"><br></div><div dir="auto">try making the mappings strong instead of normal. Also use $focus instead of $user. <br></div><div dir="auto"><br></div><div dir="auto">Regards, Chris<br></div><div id="x_1794704811aqm-original" style="color : black;"><div class="x_1794704811aqm-original-body"><div style="color : black;"><p style="margin: 8pt 0px;"><span class="colour" style="color:black"><span class="font" style="font-family:sans-serif"><span class="size" style="font-size: 10pt; margin: 8pt 0px;">Am 20. Dezember 2021 15:58:01 schrieb kajetan parzyszek via midPoint <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>>:</span></span></span><br></p><blockquote class="x_1794704811gmail_quote" style="margin : 0 0 0 0.75ex; border-left : 1px solid #808080; padding-left : 0.75ex;"><div style="font-family : Verdana, Arial, Helvetica, sans-serif; font-size : 10pt;"><div>Hi,<br></div><div><br></div><div>I'm facing an issue where I just can't get attributes from Resource1 to be passed to Resource2.<br></div><div><br></div><div>So I have inbound mapping on resource1:<br></div><pre style="background-color : #2b2b2b; color : #a9b7c6; font-family : 'JetBrains Mono', monospace; font-size : , 8pt;"><span class="colour" style="color:rgb(232, 191, 106)"><attribute><br> <</span><span class="colour" style="color:rgb(152, 118, 170)">c</span><span class="colour" style="color:rgb(232, 191, 106)">:ref </span><span class="colour" style="color:rgb(186, 186, 186)">xmlns:</span><span class="colour" style="color:rgb(152, 118, 170)">ri</span><span class="colour" style="color:rgb(106, 135, 89)">="<a target="_blank" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>"</span><span class="colour" style="color:rgb(232, 191, 106)">></span>ri:<span class="colour" style="color:rgb(232, 191, 106)">data</</span><span class="colour" style="color:rgb(152, 118, 170)">c</span><span class="colour" style="color:rgb(232, 191, 106)">:ref><br> <inbound><br> <authoritative></span>true<span class="colour" style="color:rgb(232, 191, 106)"></authoritative><br> <exclusive></span>false<span class="colour" style="color:rgb(232, 191, 106)"></exclusive><br> <strength></span>normal<span class="colour" style="color:rgb(232, 191, 106)"></strength><br> <target><br> <</span><span class="colour" style="color:rgb(152, 118, 170)">c</span><span class="colour" style="color:rgb(232, 191, 106)">:path></span>$user/extension/<span class="colour" style="color:rgb(232, 191, 106)">data</</span><span class="colour" style="color:rgb(152, 118, 170)">c</span><span class="colour" style="color:rgb(232, 191, 106)">:path><br> </target><br> </inbound><br></attribute></span></pre><div>And outbound mapping on resource2:<br></div><pre style="background-color : #2b2b2b; color : #a9b7c6; font-family : 'JetBrains Mono', monospace; font-size : , 8pt;"><span class="colour" style="color:rgb(232, 191, 106)"><attribute </span><span class="colour" style="color:rgb(186, 186, 186)">id</span><span class="colour" style="color:rgb(106, 135, 89)">="9"</span><span class="colour" style="color:rgb(232, 191, 106)">><br> <</span><span class="colour" style="color:rgb(152, 118, 170)">c</span><span class="colour" style="color:rgb(232, 191, 106)">:ref </span><span class="colour" style="color:rgb(186, 186, 186)">xmlns:</span><span class="colour" style="color:rgb(152, 118, 170)">ri</span><span class="colour" style="color:rgb(106, 135, 89)">="<a target="_blank" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>"</span><span class="colour" style="color:rgb(232, 191, 106)">></span>ri:<span class="colour" style="color:rgb(232, 191, 106)">data</</span><span class="colour" style="color:rgb(152, 118, 170)">c</span><span class="colour" style="color:rgb(232, 191, 106)">:ref><br> <outbound><br> <name>data</name><br> <authoritative></span>true<span class="colour" style="color:rgb(232, 191, 106)"></authoritative><br> <exclusive></span>false<span class="colour" style="color:rgb(232, 191, 106)"></exclusive><br> <strength></span>normal<span class="colour" style="color:rgb(232, 191, 106)"></strength><br> <expression><br> <</span><span class="colour" style="color:rgb(152, 118, 170)">c</span><span class="colour" style="color:rgb(232, 191, 106)">:path </span><span class="colour" style="color:rgb(186, 186, 186)">xmlns:</span><span class="colour" style="color:rgb(152, 118, 170)">xsi</span><span class="colour" style="color:rgb(106, 135, 89)">="<a target="_blank" href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" </span><span class="colour" style="color:rgb(152, 118, 170)">xsi</span><span class="colour" style="color:rgb(186, 186, 186)">:type</span><span class="colour" style="color:rgb(106, 135, 89)">="t:ItemPathType"</span><span class="colour" style="color:rgb(232, 191, 106)">></span>$user/extension/<span class="colour" style="color:rgb(232, 191, 106)">data</</span><span class="colour" style="color:rgb(152, 118, 170)">c</span><span class="colour" style="color:rgb(232, 191, 106)">:path><br> </expression><br> </outbound><br></attribute></span></pre><div>+ resource2 depends on resource1 this way:<br></div><pre style="background-color : #2b2b2b; color : #a9b7c6; font-family : 'JetBrains Mono', monospace; font-size : , 8pt;"><span class="colour" style="color:rgb(232, 191, 106)"><dependency><br></span><span class="colour" style="color:rgb(232, 191, 106)"> <resourceRef </span><span class="colour" style="color:rgb(186, 186, 186)">oid</span><span class="colour" style="color:rgb(106, 135, 89)">="6d475d6b-8fa7-4fb0-b2de-f311b315339c"</span><span class="colour" style="color:rgb(232, 191, 106)">/><br></span><span class="colour" style="color:rgb(232, 191, 106)"> <strictness></span>lax<span class="colour" style="color:rgb(232, 191, 106)"></strictness><br></span><span class="colour" style="color:rgb(232, 191, 106)"></dependency></span></pre><div><br></div><div>Both resources are assigned on User creation via GUI. Account from Resource1 is retrieved and mapped to the user. The idea here is to pass the just mapped data to Resource2.<br></div><div>The inbound mapping works correctly but the inbound value is not present during the outbound mapping processing thus the account on Resource2 lacks required data.<br></div><div><br></div><div>What would be the correct way to handle that?<br></div><div>I'll add that after triggering "Reconcile" on the user after it's created the data gets updated on Resource2 correctly, but I would like the process to be automated.<br></div><div><br></div><div>Thanks in advance!<br></div><div><br></div><div id="x_1794704811Zm-_Id_-Sgn"><div>Kind Regards,<br></div><div>Kajetan Parzyszek<br></div></div><div><br></div></div><br><div>_______________________________________________<br></div><div>midPoint mailing list<br></div><div><a class="x_1794704811aqm-autolink x_1794704811aqm-autowrap" href="http://mailto:midPoint%40lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br></div><div><a class="x_1794704811aqm-autolink x_1794704811aqm-autowrap" href="https://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br></div></blockquote></div></div></div><div dir="auto"><br></div></div></div>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>https://lists.evolveum.com/mailman/listinfo/midpoint<br></blockquote></div><div><br></div></div><br></body></html>