Skip to main content

[RESOLVED -> Non-issue] BUG: User ID on Webhook Event Payload is -4

  • January 27, 2022
  • 8 replies
  • 1077 views

mrautomation

Hey Monday.com Team,

Our Monday App (Custom Board View) creates a webhook on behalf of our user and we’re noticing some strange behavior.

It looks like the User ID in the Webhook Event Payload is being returned as -4 about half of the time (please see the screenshots below).

We rely on the userId in the event payload to notify the user via Monday.com notifications for when errors occur during background processes.

Please let me know if this is a bug or has something to do with OAuth Scopes or something else!

CC: @dipro

Cheers,
Chris

Screenshots:

From Logs → JSON Payload:

From Database → You’ll see that this happens sporadically:

This topic has been closed for replies.

8 replies

mrautomation
  • Author
  • Participating Frequently
  • January 27, 2022

@dipro Also, please let me know if I should tag someone else for things like this, or submit these bug reports elsewhere!


mrautomation
  • Author
  • Participating Frequently
  • January 27, 2022

It might also be good to tag @AlexSavchuk 🙂


basdebruin
  • Community Expert
  • January 27, 2022

hi @mrautomation , Chris

As far as I remember -4 is used for viewer or guests


mrautomation
  • Author
  • Participating Frequently
  • January 27, 2022

@basdebruin Thanks for the reply.

These webhook events were triggered by an admin within our system 😕


basdebruin
  • Community Expert
  • January 27, 2022

@mrautomation

Is that an active admin? I remember those -4 userIds, but I don’t know exactly what caused it. Will have a look through my archives.


dipro
Forum|alt.badge.img
  • Leader
  • January 28, 2022

Hey @mrautomation – it means that the action was completed by an automation.

Some more detail: let’s say you have the following recipes on one board:

  • Native automation: When an item is created, change status to Working on it
  • Webhook integration: When item is created, send a webhook
  • Webhook integration: When a status changes, send a webhook

When someone creates an item, your URL will then receive two events:

  • Event 1: represents item creation. The user ID will be the person who created the item.
  • Event 2: represents status change. The user ID will be -4 because it was done by an automation.

Shoutout to @basdebruin for the hint about viewers. With that detail I was able to reproduce it quite easily.


mrautomation
  • Author
  • Participating Frequently
  • January 28, 2022

Makes so much sense @dipro !!

Thank you both @dipro @basdebruin .

Cheers,
Chris


  • February 4, 2022

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.