Rank 3: Container
I want to get user id that invoked the function, so how can i get the same?
Votes
0
Replies
8
Participants
Unknown
Messages
9
Rank 3: Container
I want to get user id that invoked the function, so how can i get the same?
You'll have it inside the APPWRITE_FUNCTION_USER_ID variable.
const userId = res.variables['APPWRITE_FUNCTION_USER_ID']Rank 3: Container
Thanks a lot
Rank 3: Container
[Solved] How can i get user id in function
Hey @Binyamin, I am working on an Appwrite App in the apwrite cloud and wanted to lookup this information in the docs but it seems like the docs only describe the newest for version 1.4. Is there a plan to provide documentation for older appwrite versions?
In the API docs you can select version
Otherwise you'll need to search for it in GitHub
Yes in the reference part, but not in the Guides section...
Yep
For that you can check here
https://github.com/appwrite/docs/tree/main/app/views/docs
and here
https://github.com/appwrite/appwrite/tree/master/docs
Alright, thanks 👍