Back

Is there any way I can automatically give new users a label?

  • 0
  • Auth
  • Web
  • Cloud
Tanker Man 3000
12 Aug, 2024, 21:22

My stack is NextJS and Appwrite Cloud. I am trying to automatically apply a label named "applicant" to new registrants through a form. Is this possible at all? I have been looking for a few hours and can't seem to find a way to do it efficiently.

TL;DR
A developer using NextJS and Appwrite Cloud is trying to automatically apply a label to new registrants. The solution involves creating a function to watch for the event `users.*.create` and assigning the label using the `updateLabels` method in the server-side SDK.
Kenny
12 Aug, 2024, 21:36

You can create a function to watch for the event users.*.create and assign the label then. Labels need to be assigned using the server side SDK.

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