[midPoint] Assign Org Attribute to User

Izaias Pereira dos Santos izaccknd at gmail.com
Fri Feb 14 20:13:57 CET 2025


Hi,

I managed to fix the issue.

Thanks!

Em seg., 10 de fev. de 2025 às 06:03, Pascal PERICHON via midPoint <
midpoint at lists.evolveum.com> escreveu:

> 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
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20250214/afdeb8bb/attachment.htm>


More information about the midPoint mailing list