[SOLVED] Get the information of a specific user from a function in appwrite
- 0
- Databases
- Functions
Hi, how can I get the information from the database of a specific user from a function in appwrite. since to obtain the information of a user his login is necessary. but I require it for the administrative part.
If the user is executing the function, there are two user function variables populated:
- User id
- JWT
The user id is the user id of the user so you can do some lookup
The JWT can be used to make requests on behalf of the user.
perfect it worked for me, thank you
[SOLVED] Get the information of a specific user from a function in appwrite
Recommended threads
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Function in Node.JS to monitor events ar...
Hello everyone. I'm creating my first Node.JS function, but I don't have much experience with node and javascript. I'm trying to create a function, that monito...