I need to add over 700 people to a few groups. I have their account names in a list. Is there a way to add them in bulk? (I don't want to have to add them one-by-one!)
I've seen some possible solutions for people on the Server version, but we're on the Cloud version.
Thanks,
John Wilson
That was the answer we needed – submit an Atlassian support ticket with an attached CSV file. They will import it and upload it into your Cloud instance. It should have the form:
Username,Groupname
user1,jira-administrators
user 2,confluence-users
user3,JIRA Users
user3,confluence-users
I created the groups ahead of time. Don't know what would have happened if they didn't exist yet.
Hahahahaha is this still the most legit answer?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That isn't a very sustainable way to maintain a user-base. Atlassian, this is a great enhancement request to enable your Cloud users to maintain their users on their own.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello!
Felipe from Atlassian support here. Just wanted to share that we do make available an API endpoint for both Jira and Confluence to manipulate group assignments within the sites and thus making it possible from our customers to manage user group assignments on their own.
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Jira Cloud API link above is showing as deprecated, is there a newer link?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey all,
Felipe's link to the Jira API is still valid and up-to-date. One endpoint is now deprecated, but the rest of the endpoints are not.
It is also possible to provision users to groups in bulk using the user provisioning service offered with Atlassian Access. More details on user and group provisioning here and more about Atlassian Access here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've been a Jira admin for over 15 years now and it's amazing to me how many features we've had for years are disappearing. I wonder if the "don't &%^!@ the customer" banners at home office have come down.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, they have not. It has become abundantly clear that they will REMOVE any core feature that they think they can get away with pushing into the marketplace. Because, you know.. after the licensing fees, they want another cut.
Remove borders around a table in a wiki product? We used to be able to do that. Now, if you want to remove a border from a table once or twice a year, it will cost you extra.
Want a more robust search functionality? Not in the core product. You can input data and get a rudimentary search, but if you want anything fancy? Pay for it!
It's greedy. It's ugly. And it's exhausting. Not to mention, at some point, it will kill the company.
There's some discussion on another thread about a get together to celebrate the 20th anniversary of a feature request that is still "gathering interest"... It will be in 2024. Anyone interested can email me at theantifabrication@gmail.com. I'm slowly working on things like an eventful page, etc.
I'm hoping that maybe, if we can take a humorous jab at a clear problem, then maybe the issue will get recognized and Atlassian Mgmt will pull their heads out of their asses.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
pasting in case anyone should need this - Bulk add users to groups using Python and API
Kind Regards,
Arek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This approach requires the usedID and GroupID. I created a version below that uses the email and the Group Display Name, that's easier.
I can send the files if someone is interested.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can done this using python script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This issue seems closed already, but I'd like to add.
I was able to do this by using JIRA's Add User to Group API:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-group-user-post
+
Running it in postman using CSV as data.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you have a scriptrunner try this...
import com.atlassian.jira.component.ComponentAccessor
def userUtil = ComponentAccessor.userUtil
def userManager = ComponentAccessor.userManager
final String groupName = "GROUPA" // the group you want to add users
def group = ComponentAccessor.groupManager.getGroup(groupName) // user names of the users to add
final List<String> userToAdd = ["USR1", "USR2", "USR3"]
userToAdd.each {
def usertoadd = userManager.getUserByName(it)
if (!usertoadd) {
log.warn("User: $userToAdd doesn't exist")
return
}
if (ComponentAccessor.getGroupManager().getGroupsForUser(usertoadd).contains(group)) {
log.warn("User: $usertoadd.username already in the group: $groupName")
return
}
if(!group) {
log.warn("Group: $groupName doesn't exist")
} else {
userUtil.addUserToGroup(group, usertoadd)
log.warn("User: $usertoadd.username added to the $groupName")
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry to necro an old thread, but this is exactly what I was looking for!
Many thanks for sharing :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
John,
Please check out the CLI (Command Line Interface) tools from Bob Swift. It will allow you to perform many bulk operations for the Atlassian tools.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the suggestion, Tony. Those tools may work, but they have a large cost at our level of licenses.
I found a couple of other options. The best one was to submit a support ticket to Atlassian. They said to send them a CSV file with the usernames and Jira group names. From the support tech's email:
"The CSV should have the structure below:
Username,Groupname
user1,jira-administrators
user 2,confluence-users
user3,JIRA Users
user3,confluence-users"
I sent it to them, they imported them, and we're done!
Thanks Atlassian!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created a Python script that takes a list of emails as a Txt file and adds the users to a group. Works well for hundreds of users. If you are interested, I can send you the scripts and required files. as a compressed file. My email is jose.ramirez@kaplan.edu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.