
Hey, is it possible to initially set the preferences of a user without being logged in, i.e. after an account as been created?

I want to generate a code for every account and would like to save it after registration, how is that possible or is the update preferences endpoint not meant for such things?

what is this code used for?

Its a unique code that users of the app can share to connect with eachother

And I dont want to use the DB ID of that user for that

Its not something the user is supposed to change

and what if they delete that value?

users are free to update user preferences so it might not be good to store that value in there

I see, so I should create a document for that

Or can I save metadata other then update preferences?

For accounts

And another question, should this document be created server side or client side? If I dont want it to be changed at all by anyone that is

what do you mean?

server side. best thing is to probably have a function trigger on account creation

Im basically trying to save metadata for each account that has been created, but this meta data should be static. I wanted to avoid duplicating the accounts db id, but I guess thats the path I should take. A triggers seems right

our typical approach is to create a Users/Profiles collection where each document is a user. the id of the document should match the id of hte user. then, you can add attributes for whatever custom data you need to store

[SOLVED] Setting user preference after registration
Recommended threads
- Still an issue? On user deletion, target...
This has been mentioned here: https://discord.com/channels/564160730845151244/1295830646039515146 and as a Github issue here: https://github.com/appwrite/appwri...
- Appwrite database is rounding int values
Hi, i just noticed that appwrite is rounding the value 608542412536545279 to 608542412536545300 in my int array. It seems to somewhat relate to this github iss...
- OAuth fails with Invalid Response or inv...
Im currently trying to use the Discord Oauth but i cant find a way to make it work. I followed the docs and set up the discord oauth application and enabled it...
