Hi, is there a way to get a user's accountId based on his username or email using jira rest api?
I tried to get it from this endpoint but the accountId param is not in the response anymore :
https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-user-get
I also tried this link but this one it doesn't seems to work at all:
Thank you
Hi @Andrei Iorga , you can get the account ID from your user profile as mentioned here in this thread: https://community.atlassian.com/t5/Jira-questions/how-to-find-accountid/qaq-p/1111436
or via rest api, you can try one of the options mentioned here: https://community.atlassian.com/t5/Jira-questions/where-can-i-find-my-Account-ID/qaq-p/976527
Hi @Sramanth Pandeti I am interested in the rest api option but when I try to get the user details based on his username:
http://my-jira-url/rest/api/2/user?username=my-username
In the official documentation ( https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-user-get ) it says that in the response json should be an accountId field but when I call the endpoint I don't get that field. I read something that they removed it because of GDPR. So this is why I can't use the options mentioned in that thread. If you have any other suggestion I would appreciate. Thank you.
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.