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
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...