Skip to content

Commit 0ce9a6f

Browse files
committed
[SYNCOPE-1848] return user memberships with SCIM search endpoint
1 parent ae433ba commit 0ce9a6f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ protected ListResponse<R> doSearch(final Resource type, final SCIMSearchRequest
189189
PageRequest.of(page, itemsPerPage, Sort.by(sort)),
190190
SyncopeConstants.ROOT_REALM,
191191
true,
192-
false);
192+
true);
193193

194194
if (result.getTotalElements() > confManager.get().getGeneralConf().getFilterMaxResults()) {
195195
throw new BadRequestException(ErrorType.tooMany, "Too many results found");

fit/core-reference/src/test/java/org/apache/syncope/fit/core/SCIMITCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ public void search() {
451451
});
452452
assertNotNull(users);
453453
assertEquals(1, users.getTotalResults());
454+
assertFalse(users.getResources().get(0).getGroups().isEmpty());
454455

455456
// Extension User
456457
response = webClient().path("Users").query(

0 commit comments

Comments
 (0)