Jon-Eric Cook
How would i get a user by their email?
I am integrating Paddle and their webhooks include a customer id (this is a customer id they created). I take the customer id and do a look up in their system for the user's email. Now that i have the email i dont know how to find the user in appwrite.
TL;DR
To get a user by email in Appwrite, you can use the following code snippet:
```js
users.list([
Query.equal(“email”, USER_EMAIL_ADDRESS)
])
```
This code will allow you to find a user based on their email address. ideclon
I haven’t tested it, but this should work
TypeScript
users.list([
Query.equal(“email”, USER_EMAIL_ADDRESS)
])
Recommended threads
- [CLOSED] 401 Access to this resource is ...
was adding a large number of documents 100k + via the api and creating documents started getting the error above and also can access the db on the cloud dashboa...
- Document Update Error: Invalid document ...
Trying to update the document but getting this error. Using appwrite cloud
- mime type for docx too long?
Hello, I am trying to upload a docx file to storage, but the mime type is too long. I get the following error: ``'Invalid document structure: Attribute "mimeTy...