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
- vorafy.studio domain already exists erro...
My domain vorafy.studio is stuck/locked from a previously deleted project. I created a new project but can't add the domain — getting 'already exists' error. Pl...
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...