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 402cf2358..3c9f3d9b3 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 @@ -1451,8 +1451,7 @@ private UsersGetResponse filterUsersBySingleAttribute(ExpressionNode node, Map filterUsers(Node node, int of } /** - * Method to get User Count by Group filter + * Get user count by group filter. * * @param node Expression or Operation node. * @param domainName Domain name. @@ -1748,13 +1747,11 @@ private int getUserCountByGroup(Node node, String domainName) // Set filter values. String attributeName = ((ExpressionNode) node).getAttributeValue(); String filterOperation = ((ExpressionNode) node).getOperation(); - String attributeValue = ((ExpressionNode) node).getValue(); - /* If there is a domain and if the domain separator is not found in the attribute value, append the domain with the domain separator in front of the new attribute value. */ - attributeValue = UserCoreUtil.addDomainToName(((ExpressionNode) node).getValue(), domainName); + String attributeValue = UserCoreUtil.addDomainToName(((ExpressionNode) node).getValue(), domainName); try { List roleNames = getRoleNames(attributeName, filterOperation, attributeValue);