<div dir="ltr">Hi,<div><br></div><div>I managed to fix the issue.</div><div><br></div><div>Thanks!</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Em seg., 10 de fev. de 2025 às 06:03, Pascal PERICHON via midPoint <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Did you tried to remove the symbol "$" in front of your variable name ?<br>
<br>
i.e. organizationalUnit instead of $organizationalUnit and inativo <br>
instead of $inativo<br>
<br>
best regards<br>
<br>
Le 08/02/2025 à 06:46, Izaias Pereira dos Santos via midPoint a écrit :<br>
> Hello,<br>
> I'm having a hard time trying to implement a way to assign an org to a <br>
> user and assign an extension/orgId attribute back to the user <br>
> attribute groups.<br>
> Initially what I have done is to auto assign groups to the user using <br>
> assignmentTargetSearch like so:<br>
>     <item><br>
>         <ref>assignment</ref><br>
>         <mapping><br>
>             <name>auto-assignment-group</name><br>
>             <source><br>
>                 <path>organizationalUnit</path><br>
>             </source><br>
>             <source><br>
>                 <path>extension/inativo</path><br>
>             </source><br>
>             <expression><br>
>                 <assignmentTargetSearch><br>
> <targetType>c:OrgType</targetType><br>
>                     <filter><br>
>                         <q:text>name = $organizationalUnit</q:text><br>
>                     </filter><br>
>                 </assignmentTargetSearch><br>
>             </expression><br>
>             <condition><br>
>                 <script><br>
>                    <code>!$inativo</code><br>
>                 </script><br>
>             </condition><br>
>         </mapping><br>
>     </item><br>
><br>
> I've tried to use a groovy script where I search the org using <br>
> getOrgByName but the problem is that I have no idea how to get the <br>
> extension attributes from OrgType.<br>
><br>
> Can anyone help me with this problem...<br>
><br>
> _______________________________________________<br>
> midPoint mailing list<br>
> <a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
> <a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div>