Back

Document Update Function has no APPWRITE_FUNCTION_USER_ID Variable

  • 1
  • Self Hosted
  • Functions
  • Databases
enoy
19 Feb, 2023, 12:03

Appwrite Version: 1.2.0 Is it normal behavior that a document update that triggers a function does not contain the userId of the user that updated that document?

TL;DR
The user is asking if it's normal that the `APPWRITE_FUNCTION_USER_ID` variable is not populated when a document update triggers a function. Another user responds that it is normal behavior, as the variable is only populated when a user executes the function.
Drake
19 Feb, 2023, 16:00

Yes, that is normal. That variable is only populated when a user executes the function

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