[midPoint] Assign Org Attribute to User

Pascal PERICHON pascal.perichon at u-paris.fr
Mon Feb 10 10:03:34 CET 2025


Hi,

Did you tried to remove the symbol "$" in front of your variable name ?

i.e. organizationalUnit instead of $organizationalUnit and inativo 
instead of $inativo

best regards

Le 08/02/2025 à 06:46, Izaias Pereira dos Santos via midPoint a écrit :
> Hello,
> I'm having a hard time trying to implement a way to assign an org to a 
> user and assign an extension/orgId attribute back to the user 
> attribute groups.
> Initially what I have done is to auto assign groups to the user using 
> assignmentTargetSearch like so:
>     <item>
>         <ref>assignment</ref>
>         <mapping>
>             <name>auto-assignment-group</name>
>             <source>
>                 <path>organizationalUnit</path>
>             </source>
>             <source>
>                 <path>extension/inativo</path>
>             </source>
>             <expression>
>                 <assignmentTargetSearch>
> <targetType>c:OrgType</targetType>
>                     <filter>
>                         <q:text>name = $organizationalUnit</q:text>
>                     </filter>
>                 </assignmentTargetSearch>
>             </expression>
>             <condition>
>                 <script>
>                    <code>!$inativo</code>
>                 </script>
>             </condition>
>         </mapping>
>     </item>
>
> I've tried to use a groovy script where I search the org using 
> getOrgByName but the problem is that I have no idea how to get the 
> extension attributes from OrgType.
>
> Can anyone help me with this problem...
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint


More information about the midPoint mailing list