Back

I have question: is possible to GET user by emailAddress?

  • 0
  • Self Hosted
  • Functions
  • Web
  • Auth
Goran
3 Jul, 2024, 14:45

I need some information how I can get user object using email instead of userID?

TL;DR
Developers can get a user object using an email instead of a userID by using the list users endpoint with a query for the email address. An example query is `Query.equal('email', email@email.com)`. Check this link for more details: https://appwrite.io/docs/references/cloud/server-nodejs/users#list
Kenny
3 Jul, 2024, 14:53

If you're using the server side sdk you can use the list users endpoint, and add a query for email. I think something like Query.equal('email', email@email.com);

https://appwrite.io/docs/references/cloud/server-nodejs/users#list

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