1

When I use the import API (/api/user/import) the webhooks are not triggerd.

I tested this using postman, the /api/user/registration endpoint is working.

This is the postman request resulting in no webhooks fired and 200OK:

  "users": [
    {
      "active": true,
      "birthDate": "1976-05-30",
      "data": {
        "displayName": "Jan"
      },
      "email": "jan@fusionauth.io",
      "encryptionScheme": "salted-md5",
      "factor": 1000,
      "password": "5ac152b6f8bdb8bb12959248d542cb237c4a730064bf88bbb8dd6e204912baad",
      "expiry": 1571786483322,
      "firstName": "Jan",
      "fullName": "Jan",
      "insertInstant": 1331449200000,
      "lastName": "Boos",
      "middleName": "Kleine kinderen",
      "mobilePhone": "303-555-1234",
      "passwordChangeRequired": false,
      "preferredLanguages": [
        "en",
        "fr"
      ],
      "registrations": [
        {
          "applicationId": "7a61c6e9-b1bb-44c0-8532-07af1b04674a",
          "data": {
            "birthplace": "Amsterdam"
          },
          "insertInstant": 1331449200000,
          "preferredLanguages": [
            "de"
          ],
          "username": "Jan",
          "verified": true
        }
      ],
      "salt": "NDdiYWZkZDMtYjk5ZC00ZmZkLWE1YmUtZTQxNGM4MDkwNWYw",
      "timezone": "America/Denver",
      "twoFactorEnabled": false,
      "usernameStatus": "ACTIVE",
      "username": "Jan",
      "verified": true
    }
  ]
}

Any suggestions?

1 Answers1

0

It was a RTFM issue: We selected our application on the Applications tab under webhooks settings. We did not know selecting an application will limit you to only receiving application events.

You can still enable the events even if the are not fired, this is confusing from UX standpoints.

Solution: Selecting "All applications" in the configuration.