Assign groups to users en masse

Roberto Sánchez López 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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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