Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

emailAddress not present in GET /user after webhook

Dima T01
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 19, 2024

Hi,

I've created a webhook for `user_created` event. Event excludes `emailAddress` from the body (value is "?") and this is expected, regarding to documentation. And I should call Rest API `GET /rest/api/2/user?accountId=XXX` with account id to get user detail with email.

However, API also returns `emailAddres` with value `"?"`, if I call API immediately when webhook comes. If I call API after timeout > 1s, email is present.

Do you have any ideas, why is this happening? And how can I workaround it? I don't want to have timeouts when webhook is processed.

Thank you,

Dmitrij

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 19, 2024

Hi @Dima T01 -- Welcome to the Atlassian Community!

In my experience, there are sometimes timing-related / racetrack error, behaviors when using the Jira events.  This can definitely be seen when issue_created is raised, often before the data is available for use (e.g., in automation rules).

The workarounds are to delay or re-attempt the read to get the data.  This is what I do in automation rules for the racetrack errors.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events