Need to add users to a group using REST API

Sangeetha December 14, 2022

Hi Team,
In our organization, we are trying to add users through REST API via postman, we followed the below steps and it gave error as below.
POST https://saeljira-dev.it.here.com/rest/api/2/group/user
{
"name": "axyz",
"groupname": "Test-Group"
}
Error: group name cannot be empty

Could you please help on this?

1 answer

0 votes
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 14, 2022

Hi @Sangeetha 

Welcome to the community.

  • Adding this user to the group "Mygroup":

POST http://localhost:8080/rest/api/2/group/user?groupname=Mygroup

{
  "name": "user1"
}

 You can also take a look at How to create a user on Jira using REST API section 5.

Suggest an answer

Log in or Sign up to answer