Back

[SOLVED] Run function on user create

  • 0
  • Functions
  • Web
Kenny
7 Aug, 2023, 18:45

I've got a function that I want to run when a new user is created, but I've noticed that it does not execute.

I'm self hosted, version 1.3.8.

This is the event I'm using. users.*.create

Users are signing in/being created via oauth with Spotify.

Any insight on what I might be doing wrong would be helpful! Thanks!

TL;DR
I want to run a function when a new user is created in Appwrite. However, it seems that the event 'users.*.create' is not being triggered when users sign up via OAuth2 with Spotify. I am using a self-hosted version of Appwrite (1.3.8). Is there any way to trigger a function on OAuth sign up?
Binyamin
7 Aug, 2023, 18:46

This event is not triggered in OAuth2 signup

Binyamin
7 Aug, 2023, 18:46

Only in the createAccount functions

Kenny
7 Aug, 2023, 18:48

Ah bummer, I figured that was the case! Is there any way to trigger a function on Oauth?

Binyamin
7 Aug, 2023, 18:49

It doesn't seems like any event is being fired in using the oauth2 method.

Binyamin
7 Aug, 2023, 18:49

Maybe it's good to have a feature request for this

Kenny
7 Aug, 2023, 18:54

Thanks for looking at this for me :)

Kenny
7 Aug, 2023, 18:54

[SOLVED] Run function on user create

safwan
7 Aug, 2023, 18:59

@Kenny Make sure to 👍 this issue https://github.com/appwrite/appwrite/issues/2406

Kenny
7 Aug, 2023, 19:00

Will do! Thanks for pointing it out!

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