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
Hi
I wonder what the diff is between the 2?
Eg if a user is set to be assigned using the account id 621a81398b8c2f002297ab25 and the error returned is "User 'ug:168f9cdc-ef12-4e74-65b5-c1f85394afdd' cannot be assigned issues"
What is 621a81398b8c2f002297ab25 vs ug:168f9cdc-ef12-4e74-65b5-c1f85394afdd?
Please advise?
Thank you
Yatish
Hi Sergey - that value is indeed the account id for the user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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": {}}
?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It might be more of a permission error than a value error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I still think it is a permission thing with how you are using the webhook - can you share the webhook you are using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sergey,
have you found a solution for this issue? I tried everything, but it's impossible to get accountId from user_id (user_key) using REST API.
Thank you for any advice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.