cancel
Showing results for 
Search instead for 
Did you mean: 

How to have different customers by website with same uid ?

eric_rosfelder
Explorer
0 Kudos
591

Hi expert,

We want to have separate customers in a hybris instance with 4 websites.
"Separate" means that :

  • It must be possible to create a customer with the same "uid" on the 4 websites. Currently isn't possible because "uid" is unique.

  • The addresses of customers must be separate too...

  • Orders must be separate, but already done by hybris with personnalization

For example :


I would like your advice on the solutions below :

1) Multi-tenants

At the begining of the project (before we know the needs of separates customers), some experts said me : "if you can avoid multi-tenants, it's better".

Using multi-tenants will permits to separate customers. But it introduce already the needs to manage many tenants. Maybe it is to overkill to use multi-tenant for only separate users by website ?

2) Changing customer key

The uid must be unique for a Customer. But i think it should be possible to change that (with development) in order to have "uid + website" = new key. So when a customer create a account on a website "A", his account will be associate with "website A". When he try to login, we verify that he have a login for this website. etc....

3) No others ideas

I didn't have another solution for doing that. If you have other ideas, it'll be appreciate !



Thanks in advance,

View Entire Topic
Former Member
0 Kudos

Second Option is the best option with our custom code for authentication flow for adding store based on the site user accessing.

eric_rosfelder
Explorer
0 Kudos

Hi , thanks for your answer.