Back

Account Data to a collection

  • 0
  • Self Hosted
  • Flutter
  • Functions
paulanerl
19 Jan, 2024, 13:01

Hi guys - I have a question.

I want to create an appwrite cloud function - this function should every time a user sign up copy some attributes from the Account Data into the user_data collection - how is this possible?

The reason behind this is I need to extend the attributes of a user.

Thanks - Best regards

TL;DR
Message: To achieve this, you can create an appwrite cloud function that triggers automatically every time a new user signs up. Inside the function, you can access the user data and store it in the user_data collection. This will allow you to extend the attributes of a user. You can learn more about events and how to create a new event in the function's settings.
kamal.panara
19 Jan, 2024, 13:08

you can do trigger the cloud function when user signs up

kamal.panara
19 Jan, 2024, 13:12

you can goto your function's settings, find Events, create new event:

kamal.panara
19 Jan, 2024, 13:13
kamal.panara
19 Jan, 2024, 13:14

so now your function will automatically trigger everytime new user signs up, and you will get user data inside your function which you can use to store it into collection and do your stuff.

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