[midPoint] midpoint 4.6 code expression in accessRequest/targetSelection

Alexandre Zia alexandre.zia at ifood.com.br
Tue Nov 8 23:06:18 CET 2022


I would like to create a target selection group like:  "Managed by me" were
a user could find all users for which he is a manager
I have an attribute : extension/managerEmailAddress

It works if I use <value>...</value>

<q:value xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:type="xsd:string">some at email.com</q:value>

But trying an expression it does not work:

<accessRequest>
    <targetSelection>
        <group>
            <identifier>managed-by-me</identifier>
            <display>
                <label>Users managed by me</label>
                <icon>
                    <cssClass>fa-solid fa-people-roof</cssClass>
                </icon>
            </display>
            <collection>
                <filter>
                    <q:and>
                        <q:equal>
                            <q:path>activation/administrativeStatus</q:path>
                            <q:value>enabled</q:value>
                        </q:equal>
                        <q:equal>
                            <q:matching>stringIgnoreCase</q:matching>
                            <q:path
xmlns:orgsync="http://midpoint.evolveum.com/xml/ns/story/orgsync/ext">c:extension/orgsync:managerEmailAddress</q:path>
                            <expression>
                                <script>
                                    <code>
                                        return "some at email.com"
                                    </code>
                                </script>
                            </expression>
                        </q:equal>
                    </q:and>
                </filter>
            </collection>
        </group>
    </targetSelection>

Is it possible? to use an expression in the filter for
accessRequest/targetSelection  ?

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20221108/e120e8ab/attachment.htm>


More information about the midPoint mailing list