Good Day!
I'm using Jira Server(v8.5.2) and I'm having an issue removing a user from a group via a Rest call.
I'm referencing the docs here https://docs.atlassian.com/software/jira/docs/api/REST/8.13.13/#group-removeUserFromGroup
Here is my call.
curl -D- -u "user:pass" -X DELETE -H "Content-Type: application/json" -d "{""groupname"": ""cmteam"",""username"": ""mkimball""}" "https://jira.abc.com:8443/rest/api/2/group/user"
Here is my response.
HTTP/1.1 400
X-AREQUESTID: 736x5839x1
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-ASEN: SEN-3227898
Set-Cookie: JSESSIONID=44D609176B08968E51ED9105B4; Path=/; Secure; HttpOnly
X-Seraph-LoginReason: OK
Set-Cookie: atlassian.xsrf.token=B5P1-XI0T-LAL0-AMZA_20a1cac882ea74e58ee4a82993c93_lin; Path=/; Secure
X-ASESSIONID: 1p7zli
X-AUSERNAME: user
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 05 Nov 2021 17:16:03 GMT
Connection: close
{"errorMessages":["The group name can not be empty"],"errors":{}}
Why would I be getting this error when I'm supplying a group name? Is there something wrong with the way I am supplying json data? Any advice or suggestions would be greatly appreciated!
Thank you.