diff --git a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java index 2d3a04aa2..305f375f2 100644 --- a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java +++ b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMRoleManagerV2.java @@ -1292,7 +1292,8 @@ private void prepareAddedRemovedUserLists(Set addedMembers, Set } if (memberObject.get(SCIMConstants.RoleSchemaConstants.DISPLAY) == null) { - throw new BadRequestException("User can't be resolved from the given user Id."); + throw new BadRequestException("User can't be resolved from the given user Id.", + ResponseCodeConstants.INVALID_VALUE); } List roleList;