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?
Hi @André Felipe Rodrigues LopesTo 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:
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 <a href="https://appfire.atlassian.net/wiki/spaces/PSJC/pages/621972420/admCreateGroup" rel="noopener nofollow noreferrer" target="_blank">admCreateGroup</a> or new users with admCreateAccount. Using those you can create a script to perform these actions in bulk for a list of users/groups.
admAddUserToGroup
<a href="https://appfire.atlassian.net/wiki/spaces/PSJC/pages/621972420/admCreateGroup" rel="noopener nofollow noreferrer" target="_blank">admCreateGroup</a>
admCreateAccount
Hope it helps!Anna
It looks like you're new here. Sign in or register to get started.