<div dir="ltr">Hello,<div>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. </div><div>Initially what I have done is to auto assign groups to the user using assignmentTargetSearch like so: </div><div>    <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></div><div><br></div><div>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.</div><div><br></div><div>Can anyone help me with this problem...</div></div>