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: 

JIRA CLI bulk add Users with specified group(s)

SK1975
November 5, 2018

Hi Bob!

 I am using the following user-groups1.csv file to import new users to specified groups:

userId,userPassword,userEmail,userFullName,group
sero1,Pa$$w0rd,sergejk1@mymail.com,Sergej1 Kleva1,group1
 

With the command:

jira --action runFromCsv --common "--action addUser" --file "C:\Temp\user-groups1.csv"

But all created users are in all groups ! No matter what i write in "group" field!

OUPUT:

Run: --action addUser --userId "sero1" --userPassword *** --userEmail "sergejk1@mymail.com" --
userFullName "Sergej1 Kleva1" --group "group1"
User with id 'sero1' already in group 'group1'. Ignore.
User 'sero1' added.

Run completed successfully. 1 actions were successful from file: C:\Temp\user-groups1.csv

 

I want newly created users to be in group(s) which i write in "group" field in csv.

Is that possible?

 

Thanks in advance!!!

Brgds,

Sero

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
SK1975
November 6, 2018

I have come to workaround this problem by:

creating new  jira-imported-users group

Disable all other default application access group and leave only "jira-imported-users" group in your JIRA -> Administration -> Applications -> Application Access

SK1975
November 6, 2018

btw: if you want to add user to multiple groups you should have the right syntax in csv:

ie:

userId, userPassword, userEmail, userFullName, group
user1, Pa$$w0rd, user1@my.company.com, John Doe, "group1, group2, group3"

group1, group2 and group3 should exist before you trigger the command!

TAGS
AUG Leaders

Atlassian Community Events