Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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:

https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-customer-post

0 votes
Answer accepted

Here's another way if the customer already exists:

https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-servicedesk-serviceDeskId-customer-get

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

Nathan,

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

David

@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".

Suggest an answer

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

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

148 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you