<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=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;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<p class="msipheadercbcacb55" align="Left" style="margin:0"><span style="font-size:10.0pt;font-family:Calibri;color:#008000">THALES GROUP LIMITED DISTRIBUTION to email recipients
</span></p>
<br>
<div class="WordSection1">
<p class="MsoNormal">Hello midPoint community,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We are facing the following issue as we are using the User filtering script created in groovy:<o:p></o:p></p>
<p style="margin:0in;background:white"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D"><o:p> </o:p></span></p>
<p style="margin:0in;background:white"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">Tasks for users are not working for Microsoft Entra ID connector when used with user filtering script in synchronization condition.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">The script works fine when manually importing the users from the accounts tab under resource. <o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">When using import tasks for users no synchronization takes place. i.e. none of the users are imported. The users are just skipped.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;background:white">
<b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">Attached below is the script being used for filtering users based on group membership:<o:p></o:p></span></b></p>
<p style="background:white"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">def groupsList = ["Group1", "Group2"]<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">def groupNames = shadow.getAssociation().collect {<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">it.getShadowRef().getTargetName().toString()?.toLowerCase()<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">}<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">return groupNames.any { it in groupsList.collect { it?.toLowerCase()}}<o:p></o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:7.5pt;margin-right:0in;margin-bottom:0in;margin-left:0in;background:white">
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D">Can anyone please help?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="NL" style="color:#1F497D;mso-fareast-language:EN-GB">Kind regards,</span><span style="color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Deshak Bhatnagar</span><span style="color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</div>
</body>
</html>