Skip to content

Commit 354fb12

Browse files
authored
Merge pull request #96 from rhafer/user-filter-or
Add users filter examples for "or" filters
2 parents 27679bb + c4bed8b commit 354fb12

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

api/openapi-spec/v1.0.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2874,14 +2874,18 @@ components:
28742874
schema:
28752875
type: string
28762876
examples:
2877-
filter by group membership:
2877+
list all user of a group:
28782878
value: memberOf/any(x:x/id eq 910367f9-4041-4db1-961b-d1e98f708eaf)
2879-
filter by membership in multiple groups:
2879+
list all users that are a member of both groups:
28802880
value: memberOf/any(x:x/id eq 910367f9-4041-4db1-961b-d1e98f708eaf) and memberOf/any(x:x/id eq 4cceeace-b8ca-472a-9788-e73da11de14c)
2881-
filter by appRoleAssignments:
2881+
list all users that are a member of either one or both groups:
2882+
value: memberOf/any(x:x/id eq 910367f9-4041-4db1-961b-d1e98f708eaf) or memberOf/any(x:x/id eq 4cceeace-b8ca-472a-9788-e73da11de14c)
2883+
list all users with a specific role assignd:
28822884
value: appRoleAssignments/any(x:x/appRoleId eq 910367f9-4041-4db1-961b-d1e98f708eaf)
2883-
filter by appRoleAssignments and group membership:
2885+
list all users that are a member of the group and have a specific role assigned:
28842886
value: appRoleAssignments/any(x:x/appRoleId eq 910367f9-4041-4db1-961b-d1e98f708eaf) and memberOf/any(x:x/id eq 4cceeace-b8ca-472a-9788-e73da11de14c)
2887+
list all users that are a member of any of groups and have a specific role assigned:
2888+
value: (memberOf/any(x:x/id eq 910367f9-4041-4db1-961b-d1e98f708eaf) or memberOf/any(x:x/id eq 4cceeace-b8ca-472a-9788-e73da11de14c)) and appRoleAssignments/any(x:x/appRoleId eq 910367f9-4041-4db1-961b-d1e98f708eaf)
28852889
count:
28862890
name: $count
28872891
in: query

0 commit comments

Comments
 (0)