Forums

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

How can I add more than one user to a group via API?

André Felipe Rodrigues Lopes
Contributor
July 7, 2024

 

I've already discovered how to add one user sometimes in Jira Cloud using API, but now I want to know how to add more than one at the same time using API to speed up the creation of new groups Does anyone know how to do it?

2 answers

1 vote
Anna Hryhoruk _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 8, 2024

Hello @André Felipe Rodrigues Lopes ,

If you are looking into a marketplace application for this use case, Power Scripts offers the solution you need. With functions like admAddUserToGroup, you can easily add an existing user to a group. You can also create new groups with admCreateGroup or new users with admCreateAccount. Using those you can create a script to perform these actions in bulk for a list of users/groups.

Hope it helps!
Anna

0 votes
Kuğbe
Contributor
July 7, 2024

Hi @André Felipe Rodrigues Lopes

To add multiple users to a group in Jira Cloud via the API, you need to make multiple API calls. At the moment, the Jira Cloud REST API does not support adding several users to a group in a single call.

However, you can automate this process by writing a script that loops through your list of users, adding each one to the group individually.

While there are alternative methods that can help you achieve your goal without deep scripting knowledge, the simplest method involves writing a script.

Alternative Methods:

  • Postman
  • jira automation/CLI tools
  • Third Party apps on Atlassian Marketplace

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events