Skip to content

Commit

Permalink
[SYNCOPE-1848] return user memberships with SCIM search endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelGaro committed Dec 17, 2024
1 parent ae433ba commit 0ce9a6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ protected ListResponse<R> doSearch(final Resource type, final SCIMSearchRequest
PageRequest.of(page, itemsPerPage, Sort.by(sort)),
SyncopeConstants.ROOT_REALM,
true,
false);
true);

if (result.getTotalElements() > confManager.get().getGeneralConf().getFilterMaxResults()) {
throw new BadRequestException(ErrorType.tooMany, "Too many results found");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ public void search() {
});
assertNotNull(users);
assertEquals(1, users.getTotalResults());
assertFalse(users.getResources().get(0).getGroups().isEmpty());

// Extension User
response = webClient().path("Users").query(
Expand Down

0 comments on commit 0ce9a6f

Please sign in to comment.