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

saravanan subramanian July 22, 2012

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

0 votes
TechS July 30, 2012

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

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2012

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

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2012

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

Suggest an answer

Log in or Sign up to answer