<div dir="ltr">It looks like we can't use the following condition to auto-assign a role to users who have an organization assigned. I can see the assignment process is not able to get any delta for parentOrgRef. Probably I missed something? <div>I was able to implement the approach with metarole from here: <a href="https://lists.evolveum.com/pipermail/midpoint/2016-November/002864.html">https://lists.evolveum.com/pipermail/midpoint/2016-November/002864.html</a> </div><div>But this method requires manually adding appropriate roles in metarole's inducements.</div><div>Is there any solution to auto-assign a role directly to a user based on his parentOrgRef value change?<br><div><div><br></div><div><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"JetBrains Mono",monospace;font-size:9.8pt"><span style="color:rgb(232,191,106)"><role><br></span><span style="color:rgb(232,191,106)">    <name></span>AutoDummyUserRole<span style="color:rgb(232,191,106)"></name><br></span><span style="color:rgb(232,191,106)">    <autoassign><br></span><span style="color:rgb(232,191,106)">        <enabled></span>true<span style="color:rgb(232,191,106)"></enabled><br></span><span style="color:rgb(232,191,106)">        <focus><br></span><span style="color:rgb(232,191,106)">            <mapping><br></span><span style="color:rgb(232,191,106)">                <trace></span>true<span style="color:rgb(232,191,106)"></trace><br></span><span style="color:rgb(232,191,106)">                <strength></span>strong<span style="color:rgb(232,191,106)"></strength><br></span><span style="color:rgb(232,191,106)">                <source><br></span><span style="color:rgb(232,191,106)">                    <path></span>parentOrgRef<span style="color:rgb(232,191,106)"></path><br></span><span style="color:rgb(232,191,106)">                </source><br></span><span style="color:rgb(232,191,106)">                <condition><br></span><span style="color:rgb(232,191,106)">                    <script><br></span><span style="color:rgb(232,191,106)">                        <code></span><span style="background-color:rgb(54,65,53)">return parentOrgRef != null;</span><span style="color:rgb(232,191,106)"></code><br></span><span style="color:rgb(232,191,106)">                    </script><br></span><span style="color:rgb(232,191,106)">                </condition><br></span><span style="color:rgb(232,191,106)">            </mapping><br></span><span style="color:rgb(232,191,106)">            <selector><br></span><span style="color:rgb(232,191,106)">                <type></span>UserType<span style="color:rgb(232,191,106)"></type><br></span><span style="color:rgb(232,191,106)">            </selector><br></span><span style="color:rgb(232,191,106)">        </focus><br></span><span style="color:rgb(232,191,106)">    </autoassign><br></span><span style="color:rgb(232,191,106)"></role><br></span></pre></div></div></div></div>