• Community
  • Products
  • Jira
  • Questions
  • Need help with JIRA CLI - while adding users to Jira with CLI how to add with the ldap authentication and with some group names

Need help with JIRA CLI - while adding users to Jira with CLI how to add with the ldap authentication and with some group names

Need help with JIRA CLI - while adding users to Jira with CLI how to add with the ldap authentication and with some group names - we just want to know what are the two parameters that we have to include to add user to jira with LDAP Authenticaion and few group names

C: jira-cli jira-cli-2.7.0-SNAPSHOT>jira.sh -s http://jira:8080/login -u admin -p XX --action addUser --userId E15714 --userEmail saravanan.subramanian@cmegroup.com

2 answers

Not sure I understand the problem. What you have should add the user to the first (top) directory in JIRA. To add a user to a group, use addUserToGroup

Hi,

Its possible use the command "addUserToGroup" to add multiple users in one command line?

Example:

jira --action addUserToGroup --userId "user1,user2" --group "group_test_admin" --autoGroup

When I use this command, its prompted always the same error mesage:

Remote error: user1,user2 is not a valid user.

Thanks and Best Regards,

Daniel

No, it will only add a single user to the group.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

795 views 2 19
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you