<div dir="ltr"><div>Hi Jaroslaw,</div><div><br></div><div>the right word for you is focusMappings, please see:</div><div><a href="https://wiki.evolveum.com/display/midPoint/Using+Assignment+Path+in+Expressions">https://wiki.evolveum.com/display/midPoint/Using+Assignment+Path+in+Expressions</a> </div><div>over metarole:</div><div><a href="https://wiki.evolveum.com/display/midPoint/Configurable+Transform+Sample">https://wiki.evolveum.com/display/midPoint/Configurable+Transform+Sample</a></div><div>and samples:</div><div><a href="https://github.com/Evolveum/midpoint-samples/search?q=focusMappings&unscoped_q=focusMappings">https://github.com/Evolveum/midpoint-samples/search?q=focusMappings&unscoped_q=focusMappings</a> <br></div><div><br></div>Regards,<div><br></div><div>Gustav</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">št 16. 1. 2020 o 10:43 Skrzek Jaroslaw <<a href="mailto:Jaroslaw.Skrzek@exence.com">Jaroslaw.Skrzek@exence.com</a>> napísal(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="PL">
<div class="gmail-m_-1187734087075074791WordSection1">
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Good morning,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">In fact I don’t want to propagate the subtype information into a resource. I’ve mentioned “outbound mapping”, because
I wanted to create it in the resource configuration as an analogy to inbound mapping, which works for me (similar to the second example here <a href="https://wiki.evolveum.com/display/midPoint/Inbound+Mapping" target="_blank">https://wiki.evolveum.com/display/midPoint/Inbound+Mapping</a>).
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">What I actually want to do is to create an assignment via Midpoint GUI and to set it’s subtype. I know that it can be
filled in manually but I’d like to simplify it by automation (setting subtype).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thank you for your mapping example. As I suppose, this is an object template for a user?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Jaroslaw<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif"> midPoint [mailto:<a href="mailto:midpoint-bounces@lists.evolveum.com" target="_blank">midpoint-bounces@lists.evolveum.com</a>]
<b>On Behalf Of </b>Arnošt Starosta - AMI Praha a.s.<br>
<b>Sent:</b> Wednesday, January 15, 2020 4:11 PM<br>
<b>To:</b> midPoint General Discussion <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br>
<b>Subject:</b> Re: [midPoint] populate assignment subtype<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal">I may not fully understand your situation, but setting subtype for assignments (links between idm focus and idm role) in object template works for me, see the code example below.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">When you mention outbound mappings, it seems you want pro propagate this 'subtype' information not to idm focus assignments, but to the resource account membership in a resource role? This membership is called 'association' in midpoint
and afaik it's there is no way to specify additional attributes of assignments via connid interface. But i may be wrong and/or your resource connector supports some hack to set subtypes to associations. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">arnost<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"> <mapping><br>
<source><br>
<path>$focus/extension/...</path><br>
</source><br>
<expression><br>
<assignmentTargetSearch><br>
<targetType>c:RoleType</targetType><br>
<filter>...</filter><br>
<populate><br>
<populateItem><br>
<expression><br>
<value>my-subtype</value><br>
</expression><br>
<target><br>
<path>subtype</path><br>
</target><br>
</populateItem><br>
</populate><br>
</assignmentTargetSearch><br>
</expression><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <target><br>
<path>$focus/assignment</path><br>
<set>...</set><br>
</target><br>
</mapping><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">st 15. 1. 2020 v 14:56 odesílatel Skrzek Jaroslaw <<a href="mailto:Jaroslaw.Skrzek@exence.com" target="_blank">Jaroslaw.Skrzek@exence.com</a>> napsal:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thank you Arnost,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I’ve tried that for outboundMapping but with no luck so far. Do you think it’s possible
for outbound in general?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regards</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Jaroslaw</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-GB" style="font-size:11pt;font-family:Calibri,sans-serif"> midPoint
[mailto:<a href="mailto:midpoint-bounces@lists.evolveum.com" target="_blank">midpoint-bounces@lists.evolveum.com</a>]
<b>On Behalf Of </b>Arnošt Starosta - AMI Praha a.s.<br>
<b>Sent:</b> Wednesday, January 15, 2020 2:51 PM<br>
<b>To:</b> midPoint General Discussion <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br>
<b>Subject:</b> Re: [midPoint] populate assignment subtype</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
<div>
<p class="MsoNormal">Hi Jaroslaw,<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">you can fill assignment attributes via populate/populateItem, see here
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <a href="https://wiki.evolveum.com/display/midPoint/Expression" target="_blank">https://wiki.evolveum.com/display/midPoint/Expression</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">or checkout midpoint samples<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://github.com/Evolveum/midpoint-samples" target="_blank">https://github.com/Evolveum/midpoint-samples</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">arnost<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">st 15. 1. 2020 v 14:01 odesílatel Skrzek Jaroslaw <<a href="mailto:Jaroslaw.Skrzek@exence.com" target="_blank">Jaroslaw.Skrzek@exence.com</a>> napsal:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="color:rgb(31,73,125)">Hi,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:rgb(31,73,125)">Do you know how to assign a role to a user in such a way that the assignment subtype is filled?</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:rgb(31,73,125)">Thanks</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:black">Pozdrawiam / Best regards</span><span style="color:rgb(31,73,125)"><br>
<i> <br>
</i></span><b><i><span style="color:black">Jarosław Skrzek</span></i></b><u></u><u></u></p>
<p class="MsoNormal"><i><span style="color:black">Starszy Inżynier Oprogramowania / Senior Software Engineer</span></i><u></u><u></u></p>
<p class="MsoNormal"><i><span style="font-size:10pt;color:rgb(31,73,125)"> </span></i><u></u><u></u></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:10pt;color:black">GSM: +48 601 308 901
</span></i><u></u><u></u></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:10pt;color:black">e-mail:
</span></i><span style="color:rgb(31,73,125)"><a href="mailto:jaroslaw.skrzek@exence.com" target="_blank"><i><span lang="EN-US" style="font-size:10pt">jaroslaw.skrzek@exence.com</span></i></a></span><u></u><u></u></p>
<p class="MsoNormal" style="margin-top:6pt"><b><span style="font-size:10pt;color:black">Exence S.A.
</span></b><span style="font-size:10pt;color:rgb(31,73,125)">| </span><span style="font-size:10pt;color:black">ul. Szwedzka 5, Bielany Wrocławskie
</span><span style="font-size:10pt;color:rgb(31,73,125)">|</span><span style="font-size:10pt;color:black"> 55-040 Kobierzyce</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10pt;color:black">tel.: +48 71 782 06 00 | fax: +48 71 782 06 01</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><a href="https://www.exence.com/" target="_blank"><span lang="DE" style="font-size:10pt">https://www.exence.com</span></a></span><span lang="DE" style="font-size:10pt;color:rgb(31,73,125)">
| e-mail: </span><span style="color:rgb(31,73,125)"><a href="mailto:office@exence.com" target="_blank"><span lang="DE" style="font-size:10pt">office@exence.com</span></a></span><span lang="DE" style="font-size:10pt;color:rgb(31,73,125)">
</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-top:6pt"><span style="font-size:10pt;color:black">Sąd Rejonowy we Wrocławiu dla Wrocławia-Fabrycznej, VI Wydział Gospodarczy KRS nr 0000413027</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;color:black">Kapitał zakładowy: 208.400,00 zł, opłacony w całości; NIP: 899-273-40-56,
</span><span style="color:rgb(31,73,125)"> </span><span style="font-size:10pt;color:black">REGON: 021834967</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-top:6pt"><i><span style="font-size:8pt;color:rgb(31,73,125)">Niniejsza wiadomość może zawierać informacje poufne i/lub prawnie chronione. Jeśli nie są Państwo właściwym jej adresatem (lub otrzymali
Państwo tą wiadomość przez pomyłkę) prosimy poinformować o tym fakcie nadawcę i usunąć otrzymaną wiadomość. Kopiowanie, ujawnianie lub rozpowszechnianie informacji bez zgody jej nadawcy jest zabronione.
</span></i><u></u><u></u></p>
<p class="MsoNormal" style="margin-top:6pt;text-align:justify">
<i><span lang="EN-US" style="font-size:8pt;color:rgb(31,73,125)">This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail by mistake) please notify the sender immediately and destroy
this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
</span></i><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-GB"> </span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">--
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<p><strong><span style="font-size:10pt;font-family:Arial,sans-serif;color:black">Arnošt Starosta</span></strong><span style="font-size:10pt;font-family:Arial,sans-serif;color:black"><br>
</span><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:gray">solution architect</span><u></u><u></u></p>
</div>
<p><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:black">gsm: [+420] 603 794 932<br>
e‑mail: <a href="mailto:arnost.starosta@ami.cz" target="_blank">arnost.starosta@ami.cz</a></span><u></u><u></u></p>
<p><strong><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:black">AMI Praha a.s.</span></strong><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:black"><br>
Pláničkova 11, 162 00 Praha 6</span><u></u><u></u></p>
<p><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:black">tel.: [+420] 274 783 239 | web: <a href="https://www.ami.cz" target="_blank">www.ami.cz</a></span><u></u><u></u></p>
<p style="margin-top:15pt"><span style="font-size:7.5pt;font-family:Verdana,sans-serif;color:black"><img border="0" id="gmail-m_-1187734087075074791gmail-m_-2491330899226194594_x005f_x0000_i1025" src="http://www.ami.cz/images/podpis/ami_logo.gif" alt="AMI Praha a.s."></span><u></u><u></u></p>
<p><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:rgb(170,170,170)">Textem tohoto e‑mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.<br>
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.<br>
</span><span style="font-size:4.5pt;font-family:Arial,sans-serif;color:rgb(170,170,170)"> </span><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:rgb(170,170,170)"><br>
Tento e‑mail je určen výhradně pro potřeby jeho adresáta/ů a může obsahovat důvěrné nebo osobní<br>
informace. Nejste‑li zamýšleným příjemcem, je zakázáno jakékoliv zveřejňování, zprostředkování<br>
nebo jiné použití těchto informací. Pokud jste obdrželi e‑mail neoprávněně, informujte o tom prosím<br>
odesílatele a vymažte neprodleně všechny kopie tohoto e‑mailu včetně všech jeho příloh. Nakládáním<br>
s neoprávněně získanými informacemi se vystavujete riziku právního postihu.</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<p><strong><span style="font-size:10pt;font-family:Arial,sans-serif;color:black">Arnošt Starosta</span></strong><span style="font-size:10pt;font-family:Arial,sans-serif;color:black"><br>
</span><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:gray">solution architect</span><span style="font-size:10pt;font-family:Arial,sans-serif;color:black"><u></u><u></u></span></p>
</div>
<p><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:black">gsm: [+420] 603 794 932<br>
e‑mail: <a href="mailto:arnost.starosta@ami.cz" target="_blank">arnost.starosta@ami.cz</a><u></u><u></u></span></p>
<p><strong><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:black">AMI Praha a.s.</span></strong><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:black"><br>
Pláničkova 11, 162 00 Praha 6<u></u><u></u></span></p>
<p><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:black">tel.: [+420] 274 783 239 | web: <a href="https://www.ami.cz" target="_blank">www.ami.cz</a><u></u><u></u></span></p>
<p style="margin-top:15pt"><span style="font-size:7.5pt;font-family:Verdana,sans-serif;color:black"><img border="0" id="gmail-m_-1187734087075074791_x0000_i1026" src="http://www.ami.cz/images/podpis/ami_logo.gif" alt="AMI Praha a.s."><u></u><u></u></span></p>
<p><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:rgb(170,170,170)">Textem tohoto e‑mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.<br>
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.<br>
</span><span style="font-size:4.5pt;font-family:Arial,sans-serif;color:rgb(170,170,170)"> </span><span style="font-size:8.5pt;font-family:Arial,sans-serif;color:rgb(170,170,170)"><br>
Tento e‑mail je určen výhradně pro potřeby jeho adresáta/ů a může obsahovat důvěrné nebo osobní<br>
informace. Nejste‑li zamýšleným příjemcem, je zakázáno jakékoliv zveřejňování, zprostředkování<br>
nebo jiné použití těchto informací. Pokud jste obdrželi e‑mail neoprávněně, informujte o tom prosím<br>
odesílatele a vymažte neprodleně všechny kopie tohoto e‑mailu včetně všech jeho příloh. Nakládáním<br>
s neoprávněně získanými informacemi se vystavujete riziku právního postihu.<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">s pozdravom<div><br></div><div>Gustáv Pálos</div></div></div></div>