Forums

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

Assign groups to users en masse

Roberto Sánchez López
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!
August 8, 2016

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 votes
Nic Brough -Adaptavist-
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.
August 9, 2016

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