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
- 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...
- Appwrite (Dart SDK) (for package_info_pl...
Hi team! Many Flutter plugins now need package_info_plus 10.x and device_info_plus 13.x, but appwrite 25.4.0 still constrains package_info_plus: >=8.0.2 <10.0...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...