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

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 # 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