Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Apr 30, 2024
2 parents b083e7d + 9b6cef2 commit 7465dcf
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions docs/concepts/query/midpoint-query-language/introduction.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,12 @@ These filters operate on object as a whole, so item path must be `.` (the dot).
|===


`. inOrg "00000000-1eam-0000-0000-111111111111"`::
All object which are members of specified organization
`. inOrg "f9444d2d-b625-4d5c-befd-36c9b5861ac4"`::
All object which are members of specified organization and all its subunits (whole SUBTREE)

`. inOrg[ONE_LEVEL] "f9444d2d-b625-4d5c-befd-36c9b5861ac4"`::
If you need to match only users in specified organization, use ONE_LEVEL matching rule.

`. isRoot`::
All roles and organization units which are organization tree roots.

Expand All @@ -398,6 +402,24 @@ All roles and organization units which are organization tree roots.
| type | object type | Matches if object is of specified type. Usually used in combination with `and` filter for dereferenced objects, or it is needed to match on property defined in more specific type.
|===

=== Filtering all objects of specified type

Sometimes, in configuration files, you need to select all objects of specific object type.
Object collection selecting all users in midPoint is an example of such case.

To select all objects just omit `<filter>` element in the query or whole query.

The object collection below lists all roles (all objects of RoleType) in midPoint.

[source,XML]
----
<objectCollection oid="72b1f98e-f587-4b9f-b92b-72e251dbb255">
<name>All roles</name>
<type>RoleType</type>
</objectCollection>
----


[#_query_examples]
== Query Examples

Expand Down

0 comments on commit 7465dcf

Please sign in to comment.