
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
- Deploy sites confusion (1.7.4) / Node
Hi, I have a project with two version of the same website. One if in french, the other in english. They share the same databases and storage but I've deployed ...
- 1.7.2 Node-appwrite createDocuments from...
Am I correct in my testing that functions with document creation event, wont trigger on calling createDocuments from within a function.
- I am Trying to create my own SMS gateway...
i am using appwrite 1.2.1, where can i edit or add new customSms.php which folder should i check ? then how can i manage to edit appwrite orginal code
