
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']

Thanks a lot

[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 👍
Recommended threads
- Query.equal error
Hi guys. I'm using Appwrite Cloud, and I'm using version 21 of node-appwrite to benefit from transactions. The problem is I seem to be getting an error when I u...
- Appwrite messaging api error
```=== Push Notification Function Started === Endpoint: https://fra.cloud.appwrite.io/v1 Project: 6899062700398ffeae4f Database: threed-dating-db Notification f...
- function unable to detect client ip
Hi I have hosted appwrite on self hosted server. Currently I don't have any domain. I am accessing through ip. I have created one function which should detect t...
