Connect / link two or more already created user accounts, to one - the preferred way to do this?
- 0
- Self Hosted
- Auth

How can i connect/link two existing user accounts technically, i'm aware of all of the accounts and users mehtods from sdk, but i am interested in how you professionals and appwriters would do this, what would be the common approach? My idea is to create a custom user table called mergedUsers (as we would do it for other custom user information) where i would have the userId of each of them as a primary key, and then an additional attribute like "sameUser" which is of type string[] and where I would store the other userId (or more other userIds if applicable) of the merged user account(s). The same vice versa. So for each userId stored in this attribute there will also be a unique data record with its userId as primary key, and the other userId stored in the sameUser attribute. And then this table would have another third column/attribute, lets say "mergedUserId" in which I would store some UUID or ID.unique(). Each of these data records would be created on each new/first creation of a merged user (aka: adding the first userId to the sameUser attribute of some other user). This could be triggered in each users user settings page. Then one could ask / show this information on a user settings page and could maybe set the "master" information he/she would like to show in the front end components like profile button on the top right, or the value which should be shown as username, etc...
Recommended threads
- Email Verification Email
Hi everyone, I’m currently experiencing an issue with the email verification functionality. When I trigger the verification, the request returns a valid respon...
- Problems with adding my custom domain
- Persistent 401 Unauthorized on all authe...
Hello, I'm facing a critical 401 Unauthorized error on my admin panel app and have exhausted all debugging options. The Problem: When my React app on localhos...
