[midPoint] Assign Org Attribute to User

Izaias Pereira dos Santos izaccknd at gmail.com
Sat Feb 8 06:46:31 CET 2025


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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20250208/8b9c26d6/attachment.htm>


More information about the midPoint mailing list