Forums

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

Reliable method to retrieve AccountID based on username/email

Adeline Chew
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!
February 20, 2020

Hi, with the new GDPR changes that is removing username from API calls - What is a reliable way to retrieve the account ID based on their email or username? Our application has a list of the users' emails/usernames. We need a way to get the accountID from emails/usernames.

Following up from this post:
https://community.atlassian.com/t5/Confluence-questions/Get-user-account-ID-via-API-from-email-username/qaq-p/1197704

It was suggested that we make these calls:

GET /rest/api/3/user (will stop working with username)

GET /rest/api/3/user/bulk/migration

New V3 also has this call https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-rest-api-3-user-bulk-migration-get

However, user call will stop allowing querying with username and user/bulk/migration is marked as Experimental. My question is if the Experimental method will be kept on permanently? Or will it be removed?

Thank you!

1 answer

0 votes
Jack Brickey
Community Champion
December 10, 2021

Hi @Adeline Chew , did you find the solution for this? I came across this post recently that may help you as well - Get-accountId-after-updating-account-using-PUT 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events