This is an automated email from the ASF dual-hosted git repository.
sgarofalo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push:
new 0ce9a6f53c [SYNCOPE-1848] return user memberships with SCIM search
endpoint
0ce9a6f53c is described below
commit 0ce9a6f53c40697759c2fc6f9ef2b54094633458
Author: sgarofalo <[email protected]>
AuthorDate: Tue Dec 17 11:25:57 2024 +0100
[SYNCOPE-1848] return user memberships with SCIM search endpoint
---
.../org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java | 2 +-
.../src/test/java/org/apache/syncope/fit/core/SCIMITCase.java | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git
a/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java
b/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java
index d0f58ac605..2483bddddc 100644
---
a/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java
+++
b/ext/scimv2/scim-rest-cxf/src/main/java/org/apache/syncope/ext/scimv2/cxf/service/AbstractSCIMService.java
@@ -189,7 +189,7 @@ abstract class AbstractSCIMService<R extends SCIMResource> {
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");
diff --git
a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SCIMITCase.java
b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SCIMITCase.java
index f44e004e3f..8b07f52125 100644
---
a/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SCIMITCase.java
+++
b/fit/core-reference/src/test/java/org/apache/syncope/fit/core/SCIMITCase.java
@@ -451,6 +451,7 @@ public class SCIMITCase extends AbstractITCase {
});
assertNotNull(users);
assertEquals(1, users.getTotalResults());
+ assertFalse(users.getResources().get(0).getGroups().isEmpty());
// Extension User
response = webClient().path("Users").query(