User, createdBy and updatedBy fields are missing in the Webhook

System Information
  • Strapi Version: 4.0.6
  • Operating System: MacOS
  • Database: Postgres
  • Node Version: v14.4.0
  • NPM Version: 6.14.5

The webhook data doesn’t contain the user who did the action.
Also, it is missing the default fields createdBy and updatedBy of the collection.

For example, I have a simple collection with only a column called name.
I receive this information on creating an entry:

{
  "event": "entry.create",
  "createdAt": "2022-01-31T05:03:21.619Z",
  "model": "instance",
  "entry": {
    "id": 6,
    "createdAt": "2022-01-31T05:03:21.595Z",
    "updatedAt": "2022-01-31T05:03:21.595Z",
    "name": "Panda"
  }
}

There is no createdBy and updatedBy fields. Also, no user info (not even id) who created this object. (The user would be same as createdBy for create event, but for delete action it would be different).

Similar to another topic here


2 Likes