• 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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,725 views 17 21
Read article

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