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 26ed07c4e..ee98eafae 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 @@ -1117,7 +1117,7 @@ public User updateUser(User user, Map requiredAttributes) throw // If password is updated, set it separately. if (user.getPassword() != null) { carbonUM.updateCredentialByAdminWithID(user.getId(), user.getPassword()); - publishEvent(user, IdentityEventConstants.Event.POST_UPDATE_CREDENTIAL, false); + publishEvent(user, IdentityEventConstants.Event.POST_UPDATE_CREDENTIAL_BY_SCIM, false); } updateUserClaims(user, oldClaimList, claimValuesInLocalDialect); @@ -1303,7 +1303,7 @@ public User updateUser(User user, Map requiredAttributes, // If password is updated, set it separately. if (user.getPassword() != null) { carbonUM.updateCredentialByAdminWithID(user.getId(), user.getPassword()); - publishEvent(user, IdentityEventConstants.Event.POST_UPDATE_CREDENTIAL, true); + publishEvent(user, IdentityEventConstants.Event.POST_UPDATE_CREDENTIAL_BY_SCIM, true); } updateUserClaims(user, oldClaimList, claimValuesInLocalDialect, allSimpleMultiValuedClaimsList);