Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Incomprehensible value of user_id/user_key in webhooks

I have several webhooks on Jira Cloud. Each webhook, in additional to parameters, add two of its own: user_id and user_key with understandable values - username

 

Now i see these parameters contain strange values like:

ug:29affccb-e7e8-416a-848f-b3cbe38ad527

What is this id? 

I checked it is not accountId

 

Also strange

Some people who use these webhooks generate normal username, and some people like this ug:29affccb-e7e8-416a-848f-b3cbe38ad527

1 answer

0 votes
John Funk Community Leader May 20, 2021

Hi Sergey - that value is indeed the account id for the user. 

Hi John! If it is accound id for the user, why i can't get user info via 

/rest/api/3/user/groups?accountId=ug:29affccb-e7e8-416a-848f-b3cbe38ad527

 

Response:

{ "errorMessages": [ "Specified user does not exist or you do not have required permissions" ], "errors": {}}

 

?

John Funk Community Leader May 20, 2021

It might be more of a permission error than a value error 

But i have admin rules :-) 

John Funk Community Leader May 21, 2021

who is the webhook running as? i.e. what user?

Also, you can verify the accountID by just running a simple filter like

assignee = ug:29affccb-e7e8-416a-848f-b3cbe38ad527

Wow, realy! 

assignee = ug:29affccb-e7e8-416a-848f-b3cbe38ad527 return some tickets with specific user.

But why i can't find this id in user info?  /rest/api/3/user 

 

I am looking the way to get username by this id: ug:29affccb-e7e8-416a-848f-b3cbe38ad527 

John Funk Community Leader May 21, 2021

I still think it is a permission thing with how you are using the webhook - can you share the webhook you are using? 

simple webhook: https://{jenkins_url}/buildByToken/buildWithParameters?job=deploy_issue&token={token}&ISSUE=${issue.key}

 

for some person Jira add additional parameter &user_id=sergey.matveev

for some person add &user_id=ug:29affccb-e7e8-416a-848f-b3cbe38ad527

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Asked in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

261 views 13 14
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you