Base solution for your next web application
Open Closed

Unique User across Tenants PLS HELP. #3361


User avatar
0
scharada created

Hi,

Users can register with the same email / Social account across multiple tenants ... which makes sense in multi-tenant setups . it makes using separate databases for tenants. However when using the same database, it seems to be a problem. here is the scenario :

each new user gets an account at registration. his account has a "Deposit Account" with Zero Balance that he can fund and use to pay for things at tenants stores ... the problem is that we want the stored value to hold a single balance which can be used across all tenants and not by Tenant which is not possible in this setup.
the stored value account is looked up by Alias just like any social account
ie: when you want to send funds to user <a href="mailto:[email protected]">[email protected]</a> you could simply send it to his alias @john which should be unique across the tenants and should point to one single user across all tenants.

Any Idea on how to Solve this ?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can use UserAccounts table to check if there is a user with given username before creating a new user.

    Thanks.