
i want to get a specific users preferences from serverside maybe i missunderstood something

the docs dont show it

I think it's that?

but how do i know what user its from?

I think inside account.getPrefs() you can put the user object.

It should be in the docs 🤔

If by server-side you mean using a Server Side SDK with API Key?

yes, im eating rn ill check if its possible and let you guys know

nope it doesnt have anything that inputs userid

weird

On Client Side, account.getPrefs()
should be called after the user is successfully logged in which doesn't require passing any userID.

this is serverside though

However, on the Server Side SDKs you do -
const user = await users.get('[USER_ID]');
const prefs = user.getPrefs()

oh i see lemme check


[Solved] how to get user prefs from serverside
Recommended threads
- Cannot create function from CLI with KEY
I tried to setup a gitlab CI that push functions from an appwrite.json, tho when doing a first push it fails saying it needs a session. Tho it does create the f...
- appwrite/appwrite:1.7.4 image missing En...
Hi Team, I'm experiencing a critical issue when deploying the official appwrite/appwrite:1.7.4 Docker image. After pulling the image (both by tag and by digest...
- cannot update env _APP_SYSTEM_SECURITY_E...
I tried updating .env file using vim and change the env _APP_SYSTEM_SECURITY_EMAIL_ADDRESS=arcivalpalma07@gmail.com and save. docker compose up -d docker com...
