curl --insecure -D- -u admin:password -X POST --data "{\"name\": \"username\"}" -H "Content-Type: application/json" https://myjiraserver.com/rest/api/2/group/user?groupname=mygroupname
- Replace password with the actual admin password.
- Replace username with the name of the user you're adding to the group.
- Replace myjiraserver.com with your JIRA server's FQDN.
- Replace mygroupname with the name of the group to which you are adding this user.
I added the --insecure option because of the private SSL certs used on my server. You may not need that, or you may not be using HTTPS at all (in which case edit the URL to use HTTP).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.