From a9f831f43fe309c30fc5a6006bc5b012d32c63e0 Mon Sep 17 00:00:00 2001 From: sadilchamishka Date: Mon, 26 Aug 2024 11:16:46 +0530 Subject: [PATCH] Fix scim2/Groups list with count parameter issue --- .../wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java index 724c25ee..466d85bc 100644 --- a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java +++ b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java @@ -2962,7 +2962,7 @@ public GroupsGetResponse listGroupsWithGET(Node rootNode, Integer startIndex, In startIndex = handleStartIndexEqualsNULL(startIndex); if (sortBy != null || sortOrder != null) { throw new NotImplementedException("Sorting is not supported"); - } else if (startIndex != 1 || count != null) { + } else if (startIndex != 1 && count != null) { throw new NotImplementedException("Pagination is not supported"); } else if (rootNode != null) { return filterGroups(rootNode, startIndex, count, sortBy, sortOrder, domainName, requiredAttributes);