Forums

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

Bulk entry of customers

Andy Daunt May 4, 2021

Hi

is it possible to bulk enter a list of "customers" into the system?

2 answers

1 accepted

0 votes
Answer accepted
Thomas Deiler
Community Champion
May 4, 2021

Dear @Andy Daunt ,

read my article. Its written to create loads of users from a CSV file, but for Jira. The solution is similar to your requirement. You have to change following to make it work for JSM Cloud:

replace

CURLOPT_URL => JIRA_URL . '/rest/api/latest/user',

with

CURLOPT_URL => JIRA_URL . '/rest/servicedeskapi/customer',

and replace

$request = '{"name":"'.$uname.'","password":"'.$upass.'","emailAddress":"'.$uemail.'","displayName":"'.$udname.'","applicationKeys":["jira-software"]}';

with

$request = '{"displayName": "' . $udname . '", "email": "'. $uemail . '"}';

As 'user' you will take your email address, for 'pass' take the API token. You can create your own here: https://id.atlassian.com/manage-profile/security/api-tokens

So long

Thomas

Thomas Deiler
Community Champion
May 4, 2021

Dear @Andy Daunt ,

I wrote a new article.

So long

Thomas

0 votes
Andy Daunt May 4, 2021

Many thanks, that is perfect - just what we need! :) 

Thomas Deiler
Community Champion
May 4, 2021

You are welcome!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events