Hi there, I know it is possible to list users as described in the docs here: https://appwrite.io/docs/server/users?sdk=python-default#usersList. Is it possible to Query the user prefs and if yes how would that query look like?
It's seems like you can work around the user preferences only after you get the user \ account instance Which means - for what I can see - there isn't any option to query (or group) by user preferences
But,
What you can do is add users to teams ( and assigned roles for them) then you be able to group them by team or team and role
Mhh, okay I think assigning them to teams would do the job π Thanks again @Binyamin π
π
[SOLVED] List users with query on prefs
Oh no, I just forgot that teams do not help me π¦ So I guess I have to create an extra table to store the data in to make it "searchable"...
Why is that?
Because I specifically need to search for a set preference
and it has a different value for every user
I understand
Then yes your way sounds the right one
Recommended threads
- Trying to Figure out how to delete a use...
If i have a button in an app that allows a user to delete their account, can I not just call a function from my swift app to Appwrite to have the account delete...
- Expected a value of type 'bool', but got...
I am trying to get current User, but get this error message when I do. I get back user prefs, but error comes from trying account.get() So I am getting User. I ...
- Problem accessing api via local host.
I think i set the Endpoint correctly in my config.ts als the cloud.appwrite url but when i try to create a user I get this Error message: Access to XMLHttpReque...