Assign groups to users en masse

I need to assign groups to users en masse. A user can have 300 groups and 300 users group 1. Is there any way to do it in JIRA or in thedatabase? My Jira is 7.0 and SQL Server 2014.

Thank you

1 answer

0 vote

It's not nice trying to do it in the database, you'll need to back everything up, shut down JIRA, hack the cwd_group and cwd_membership tables, plus the counter table (I don't know if embedded crowd uses the JIRA counters or its own), and fully understand exactly how they work to get the SQL correct.  If you're not using embedded crowd, that all changes of course.

Users being in 300 groups sounds rather broken too.  I suspect that if you're really using them for permissions, you're going to create performance issues in your JIRA.  Rather than try to replicate a broken set of groups, it might be a good time to evaluate why you've got so many and simplify.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you