[midPoint] Midpoint Query Language - referencing parent object inside matches clause

Alcides Moraes alcides.neto at gmail.com
Tue May 28 23:17:24 CEST 2024


Hello list,

I’m trying to make a rather simple query - I want every User that has an OrgType assignment in which the name of the organization does not match the value of the user’s organizationalUnit text field.

I have written this query, it does not work:

assignment/targetRef/@ matches (
. type OrgType and name != ../organizationalUnit)

I get "Couldn't find definition for parent for {http://midpoint.evolveum.com/xml/ns/public/common/common-3}OrgType, path=name”

I have read the entire documentation on the query language, I have not seen any single way to reference the outside/parent object inside a matches clause.
How can I do this? Or achieve the desired result with a different query?

Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6278 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20240528/25a0b0fc/attachment.bin>


More information about the midPoint mailing list