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 68a032ba..45538218 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 @@ -1493,7 +1493,8 @@ private String resolveDomainName(String domainName, ExpressionNode node) throws } catch (BadRequestException e) { String errorMessage = String .format("Domain parameter: %s in request does not match with the domain name in the attribute " - + "value: %s ", domainName, node.getValue()); + + "value: %s ", domainName, (LoggerUtils.isLogMaskingEnable ? + LoggerUtils.getMaskedContent(node.getValue()) : node.getValue())); throw new CharonException(errorMessage, e); } // Get domain name according to Filter Enhancements properties as in identity.xml