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 724c25ee2..466d85bc1 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);