cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

User ID is getting updated based on email.

Huskar
Participant
0 Kudos
547

I am updatig my existing customer email id but as soon as I am saving it, its uid is also getting updated with email id also. Is this hybris OOTB behaviour? If yes, how can I change this? If no, can you suggesst me what can be the cause for this?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I think its because of the prepare interceptor on CustomerModel CustomerOriginalUidPrepareInterceptor. I think its possible to disable specific interceptors if you execute the logic in local session. Check the documentation for more details. https://help.hybris.com/6.7.0/hcd/9ce1b60e12714a7dba6ea7e66b4f7acd.html

Former Member
0 Kudos

If you want to separate the email from the uid, you need to create a new property for an email address and store/change the email address into it. And also use it when retrieving the email address. And use something else for the uids (eg. a generated GUID).

Huskar
Participant
0 Kudos

Ok but I still didn't know why why it's updating uid along with email.

Former Member
0 Kudos

The email address is saved in the "uid". (Exception: for guest customers, there's a prefix in front of the email address.)