FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    User not yet created when user.created event fired

    Scheduled Pinned Locked Moved
    Q&A
    0
    4
    625
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cyrill.lippuner
      last edited by cyrill.lippuner

      Hello, I came a across a strange behaviour, as I was playing with the user.created event. I listen to this with a webhook when a new user is created and then I create a user entry on my side, too. But as I have a default application, I wanted to automatically create a registration for this user. This is not needed when it is a self-signup, but only when the user is created in the fusion auth app.

      I understand now that when the webhook fails, the user does not get created, and that is why the user cannot actually exist yet in the database of fusionauth. But the docs are missleading as they state that the event user.created is fired upon a user creation, which indicates the user already exists.
      Event: User Created

      Did I understand correct or is there something I have missed?

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        Hmmm. We try to address that complexity here: https://fusionauth.io/docs/v1/tech/events-webhooks/writing-a-webhook/#calling-fusionauth-apis-in-webhooks We also offer some workarounds.

        Where would you expect this doc to live?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 1
        • C
          cyrill.lippuner
          last edited by

          Thanks, that was exactly what I was looking for. I just didn't stumble across this part of the docs.

          To your question, I guess it is already at the right place. I would maybe just mention it in the create events and link this part of the docs as otherwise (at least in my case where most of the webhooks already work), I did not go back to the general webhook setup docs.

          1 Reply Last reply Reply Quote 1
          • danD
            dan
            last edited by

            @cyrill-lippuner PR here: https://github.com/FusionAuth/fusionauth-site/pull/544

            Thanks for the feedback!

            --
            FusionAuth - Auth for devs, built by devs.
            https://fusionauth.io

            1 Reply Last reply Reply Quote 1
            • First post
              Last post