Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need to add users to a group using REST API

Sangeetha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 Champion
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