<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=utf-8">
<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;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 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-MailFormatvorlage20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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]-->
</head>
<body lang="DE-AT" link="#0563C1" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">thank you for your suggestions! <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am not sure if the pipeline itself is the problem since the request seems to work as an XML request, only when attempting to send it in JSON format the mentioned error happened.
<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">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Alexander<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="DE" style="mso-fareast-language:DE-AT">Von:</span></b><span lang="DE" style="mso-fareast-language:DE-AT"> Emil Militzer <emil.militzer@posteo.de>
<br>
<b>Gesendet:</b> Mittwoch, 15. Juni 2022 17:46<br>
<b>An:</b> midPoint General Discussion <midpoint@lists.evolveum.com><br>
<b>Cc:</b> Alexander Bruckner <alexander.bruckner@ventum.com><br>
<b>Betreff:</b> Re: [midPoint] Bulk Assignment of Roles to Users via JSON API Request<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi,<span style="mso-fareast-language:DE-AT"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I think this will not work because the pipeline is not working correctly:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:13.5pt;font-family:"Verdana",sans-serif;color:#014391"><br>
<br>
</span></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><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><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Kind regards<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Emil<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt">Am 15.06.2022 um 15:08 schrieb Alexander Bruckner via midPoint <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>>:<o:p></o:p></p>
</blockquote>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"> <span style="mso-fareast-language:DE-AT"><o:p></o:p></span></p>
<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:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></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>:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">{</span><o:p></o:p></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>,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "pipeline": [</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> {</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "@element": "search",</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "type": "c:UserType",</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "searchFilter": {</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "inOid": {</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "value": [</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "c38dc04a-e780-4475-ad51-f42dd054f622",</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "cd244459-81fe-4208-a51c-111cae039185",</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "12d665c0-7114-4b49-97ba-94c4cd154f8a"</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> ]</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> }</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> }</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> },</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> {</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "@element": "sequence",</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "@value": [</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> {</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "@element": "action",</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "type": "assign",</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "parameter": {</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "type": "role",</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> "value": "a6afcd50-5f33-4250-8b93-62cb72e1a39a"</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> }</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> }</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> ]</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> }</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> ]</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">}</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">But received the error message:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></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><o:p></o:p></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))</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">It seems like Pipeline is not expecting a list of objects.</span><o:p></o:p></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?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">If anyone of you has some advice regarding this, it would be greatly appreciated!</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Thank you and best regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Alexander Bruckner</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE-AT">_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a><o:p></o:p></span></p>
</div>
</blockquote>
</div>
</body>
</html>