Forums

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

Getting Jira account ID

Per-Ã…ge Themte
Contributor
March 25, 2019

Hi,

I'm integrating our SAP system to a customers Jira that are using tempo timesheet. In the rest call, we need account id, which can be obtained by calling a rest service. However, I don't have admin access to our customers Jira, hence I'm not able to get the account Id programatically.

Is there somewhere in Jira where our customer can get the account id's for our users?

1 answer

0 votes
Warren
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.
March 25, 2019

Hi @Per-Ã…ge Themte 

Before 29th March i.e. this Friday, you can run this API call

/rest/api/3/user/search?startAt=0&maxResults=1000&username=%

which will return a record for each user (up to 1000 users) containing their username and accountId, which you could then store for future lookup - not sure if this is GDPR compliant ;-)

Per-Ã…ge Themte
Contributor
March 25, 2019 edited

Hi @Warren ,

User search needs user admin access, hence this won't work.

Btw - what happens after 29th of March?

Warren
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.
March 25, 2019

I was assuming that you could write something for the customer to run which uses this call and writes the output to a file.

From 29th March, all API calls will only accept accountId and only return accountId - the users e-mail address / username will not appear or be used - there are numerous online articles about the GDPR changes, this should give you a good idea about the changes

Per-Ã…ge Themte
Contributor
March 25, 2019

Thanks for the update @Warren 

How can you get the account Id with the new api when it’s not possible to query by user or e-mail? Sounds like a catch 22 to me...

Like • 2 people like this
Per-Ã…ge Themte
Contributor
March 27, 2019

Anyone?

Nathan Given
Contributor
April 22, 2019

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events