• 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

This widget could not be displayed.

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

This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

167 views 1 3
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