<div dir="ltr">Completely the same question. How?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 18 Apr 2023 at 16:21, Patrik Sidler via midPoint <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Community,<br>
<br>
I have an issue and do not know how to get this solved.<br>
<br>
We have several roles created that have a "Manager Approval" metarole assigned to it.<br>
<br>
<role oid="5a9ece69-86ca-4e29-8457-c080287dac35"><br>
    <name>Manager Approval Metarole</name><br>
    <inducement id="10"><br>
        <policyRule><br>
            <policyConstraints><br>
                <assignment id="11"><br>
                    <operation>add</operation><br>
                </assignment><br>
            </policyConstraints><br>
            <policyActions><br>
                <approval id="12"><br>
                    <compositionStrategy><br>
                        <order>10</order><br>
                    </compositionStrategy><br>
                    <approvalSchema><br>
                        <stage id="13"><br>
                            <name>Line managers</name><br>
                            <approverExpression><br>
                                <script><br>
                                    <code>midpoint.getManagersOidsExceptUser(object)</code><br>
                                </script><br>
                            </approverExpression><br>
                            <evaluationStrategy>firstDecides</evaluationStrategy><br>
                            <outcomeIfNoApprovers>reject</outcomeIfNoApprovers><br>
                        </stage><br>
                    </approvalSchema><br>
                </approval><br>
            </policyActions><br>
        </policyRule><br>
    </inducement><br>
</role><br>
<br>
Whenever one those roles are requested by someone, the manager of the person that receives the role has to approve the assignment.<br>
So far so good.<br>
But now, when my manager requests this role for me, he also has to approve this request.<br>
How can I suppress this approval step when the requester and the approver are the same person?<br>
<br>
Thank you in advance for your help.<br>
<br>
Best regards,<br>
<br>
Patrik Sidler<br>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div>