Back

[CLOSED] Listing all the users of a project

  • 0
  • Web
SreeSen
31 Oct, 2023, 03:30

Is there any way (indirect) to list all the users of my project using the web sdk, I checked the docs and I found that we have to use NodeJS for listing the users.

TL;DR
Title: [CLOSED] Listing all the users of a project Messages: The user wanted to know if there was a way to list all the users of a project using the web SDK. The support team mentioned that for security reasons, they don't allow listing users on the client SDKs. However, they suggested using the Users API in an Appwrite Function as a workaround, although it may still have security issues. Another suggestion was to use collections to keep track of chats and user IDs. The user also mentioned finding a method called `users.list` in the docs but it requires NodeJS. The support team suggested checking the Account
Haimantika
31 Oct, 2023, 09:34

Maybe the Account API can help you with that.

SreeSen
31 Oct, 2023, 10:30

I didn't find this method in the docs, but there is a method users.list but it requires NodeJS

Aditya Oberai
31 Oct, 2023, 12:16

Hey @SreeSen As we discussed earlier on Twitter, we don't allow listing of users on the client SDKs due to security reasons

If you really want a workaround to that, you can use the Users API in an Appwrite Function and get back the entire list, but ideally that would still keep the security issues open.

My suggestion instead would be to use collections to keep track of chats and the user IDs of the participants in them

SreeSen
31 Oct, 2023, 12:18

Yes, I am following what you said on Twitter, I will follow the collection approach.

Aditya Oberai
31 Oct, 2023, 12:20

Awesome! πŸ˜„ In that case, I'm marking this thread as closed for now In case you have further doubts, we can open it up accordingly

SreeSen
31 Oct, 2023, 12:25

Yes sure

Aditya Oberai
31 Oct, 2023, 12:28

[CLOSED] Listing all the users of a project

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more