The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events