Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How can I lookup a customer accountId to automatically add them to my Jira Service Desk organization

I'm creating a sync between Jira Service Desk and another system that has customer email addresses and I want to bulk add customers to organizations within Jira Service Desk.

With the upcoming changes in the Rest API, I can't figure out how to convert my list of customer email addresses into an accountId .

I need the accountId in order to add customers to organizations, so it seems until I can successfully lookup the accountId I'm stuck.

Thank you~!

2 answers

2 accepted

2 votes
Answer accepted

Hi @Nathan Given ,


you should get the accountId as a response when creating the customer. Please take a look at the REST API documentation:

0 votes
Answer accepted

Here's another way if the customer already exists:

(it turns out I needed @Jakub Sławiński suggestion with this one.)


Is there away to do a search on that call? It just returns all users for me.


@David Orazine 


I couldn't figure out a search... so I just got back all users, stored them in-memory, and had my bulk load only run once a day so as to not slow down any realtime or transactional requests.

Like David Orazine likes this

It has query parameter.

The returned list of customers can be filtered using the query parameter. The parameter is matched against customers' displayName, name, or email. For example, searching for "John", "Jo", "Smi", or "Smith" will match a user with display name "John Smith".


together with post if no matches were found worked for me. Make sure to add the header below when using the customer api.

'X-ExperimentalApi' = 'opt-in'

Like Nathan Given likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

An unofficial way to monitor a JSM mail handler for errors

...eturns true if any content is returned for the s...

692 views 2 20
Read article

Atlassian Community Events