
I have a required where I need to get the list of user who has a specific value of a prefs. Here, I'm using server sdk.

you cannot query on prefs.

An alternative way here could be to set labels instead of preferences if you're trying to setup a sort of tagging system for users

Okay!

@Abhishek does that resolve your issue?

I'm changing the data structure here. I created a DB table to map the user ID with specific properties to make it work according to our business logic.

That sounds good 👍 @Abhishek are we good to mark this issue as solved?

Yes

[Solved] Can we use prefs to get the list of users?
Recommended threads
- How to self host 1.8.x
Hello, I have a running self hosted instance of appwrite 1.7.4 installed some month ago, but I read the latest announcements and a lot of cool stuff seem to hav...
- Issue with users.list on Appwrite self-h...
Hi all, I am self-hosting an Appwrite instance with the version 1.6.1 on a remote server and am running a web-app written in React in a container on the same h...
- Something is wrong with bulk update docu...
1 - Create a collection with attributes A and B, set B as non required with a default value 2 - Create some documents with data value for A and B 3 - Call upda...
