<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">I think this will not work because the pipeline is not working correctly:</div><div dir="ltr"><span style="-webkit-text-size-adjust: auto; caret-color: rgb(1, 67, 145); color: rgb(1, 67, 145); font-family: Verdana, Arial, sans-serif, "Times New Roman"; font-size: 18px; font-weight: 700; text-align: right;"><br></span></div><div dir="ltr"><a href="https://jira.evolveum.com/browse/MID-7965?orderby=updated+DESC%2C+priority+DESC">https://jira.evolveum.com/browse/MID-7965?orderby=updated+DESC%2C+priority+DESC</a></div><div dir="ltr"><br></div><div dir="ltr">Kind regards</div><div dir="ltr">Emil</div><div dir="ltr"><br><blockquote type="cite">Am 15.06.2022 um 15:08 schrieb Alexander Bruckner via midPoint <midpoint@lists.evolveum.com>:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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;
        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;}
span.E-MailFormatvorlage17
        {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:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></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]-->


<div class="WordSection1">
<p class="MsoNormal">Hello everyone,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">we are currently trying to assign one role to multiple users via a JSON API request. We’ve already managed to do this over XML with this request body:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:pipeline</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"> </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:red;mso-fareast-language:DE-AT">xmlns:s</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3"><span lang="EN-US">http://midpoint.evolveum.com/xml/ns/public/model/scripting-3</span></a></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">          </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:red;mso-fareast-language:DE-AT">xmlns:c</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3"><span lang="EN-US">http://midpoint.evolveum.com/xml/ns/public/common/common-3</span></a></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">          </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:red;mso-fareast-language:DE-AT">xmlns:xsi</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><a href="http://www.w3.org/2001/XMLSchema-instance"><span lang="EN-US">http://www.w3.org/2001/XMLSchema-instance</span></a></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">          </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:red;mso-fareast-language:DE-AT">xmlns:xsd</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><a href="http://www.w3.org/2001/XMLSchema"><span lang="EN-US">http://www.w3.org/2001/XMLSchema</span></a></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:red;mso-fareast-language:DE-AT">xmlns:q</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><a href="http://prism.evolveum.com/xml/ns/public/query-3"><span lang="EN-US">http://prism.evolveum.com/xml/ns/public/query-3</span></a></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:search</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"> </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">    </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:type</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">c:UserType</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:type</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">    </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:searchFilter</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">       </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">q:inOid</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">          </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">q:value</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">c38dc04a-e780-4475-ad51-f42dd054f622</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">q:value</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">          </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">q:value</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">cd244459-81fe-4208-a51c-111cae039185</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">q:value</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">          </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">q:value</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">12d665c0-7114-4b49-97ba-94c4cd154f8a</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">q:value</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">       </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">q:inOid</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">    </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:searchFilter</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:search</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:sequence</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:action</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">        </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:type</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">assign</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:type</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">        </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:parameter</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">            </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:name</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">role</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:name</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">            </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">c:value</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"> </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:red;mso-fareast-language:DE-AT">xsi:type</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">=</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">"xsd:string"></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">a6afcd50-5f33-4250-8b93-62cb72e1a39a</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">c:value</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">        </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:parameter</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">    </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:action</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">    </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:sequence</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">    </span><span style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">s:pipeline</span><span style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><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">But similar approaches do not seem to work for JSON. We attempted the recommended method via heterogenous lists as outlined in
<a href="https://docs.evolveum.com/midpoint/devel/design/xml-json-yaml-vs-xnode-vs-internal-data/heterogeneous-lists/">
https://docs.evolveum.com/midpoint/devel/design/xml-json-yaml-vs-xnode-vs-internal-data/heterogeneous-lists/</a>:<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">{<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    "@ns" : <a href="http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3">
http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3</a>,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    "pipeline": [<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">            "@element": "search",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">            "type": "c:UserType",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">            "searchFilter": {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                "inOid": {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                    "value": [<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                        "c38dc04a-e780-4475-ad51-f42dd054f622",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                        "cd244459-81fe-4208-a51c-111cae039185",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                        "12d665c0-7114-4b49-97ba-94c4cd154f8a"<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">                }<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">        },<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">            "@element": "sequence",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">            "@value": [<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">                    "@element": "action",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                    "type": "assign",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                    "parameter": {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                        "type": "role",<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">                        "value": "a6afcd50-5f33-4250-8b93-62cb72e1a39a"<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">                }<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">        }<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">}<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">But received the error message:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">message</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">Wrong input value for ExecuteScriptType: RawType: (raw): XNode(list:2 elements))</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"></</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">message</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#FFFFFE"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">    </span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT"><</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:DE-AT">details</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:blue;mso-fareast-language:DE-AT">></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:black;mso-fareast-language:DE-AT">java.lang.IllegalArgumentException: Wrong input value for ExecuteScriptType: RawType: (raw): XNode(list:2 elements))<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">It seems like Pipeline is not expecting a list of objects.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there some error in our current JSON or is there a different way of writing the query?<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">If anyone of you has some advice regarding this, it would be greatly appreciated!<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"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you and best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Alexander Bruckner<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>


<span>_______________________________________________</span><br><span>midPoint mailing list</span><br><span>midPoint@lists.evolveum.com</span><br><span>https://lists.evolveum.com/mailman/listinfo/midpoint</span><br></div></blockquote></body></html>