Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

REST API: The group name can not be empty

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

Here is my call.

curl -D- -u "user:pass" -X DELETE -H "Content-Type: application/json" -d "{""groupname"": ""cmteam"",""username"": ""mkimball""}" ""

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
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. 

1 answer

1 accepted

Hi Matt

This endpoint requires the groupname and username as query parameters e.g.

 In your example you could do

curl -X "DELETE" -u username:password ""

Worth testing this in a test environment first

Thank you for the support! This was the issue exactly.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,265 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you