I am trying to remove a group of users in bulk from the jira-users group through SQL (since there doesn not seem to be a way to do this through the UI). I am deleting the row in cwd_membership where the child_name = 'user's id' and parent_name = 'jira-users'. After running this query, the UI does not reflect the update until I add that user to another group, then the groups update in the UI as expected.
Question: When you remove a user from a group in the UI, is it touching more tables than simply deleting the corresponding row for that user/grou pairing from cwd_membership table?
Both. I can not recommend the use of SQL updates on a JIRA database, as they almost always cause problems because people don't understand the database.
If you insist on using them, then you *must* have JIRA offline when you do it, and a proved backup, as it's not unknown for one tiny mistake to render chunks of the application totally broken.
There are some exceptions to the "offline and re-index afterwards" rule, but not many.
My apolgies, I was too focussed on the SQL. Yes, absolutely do it with REST.
I think of REST as a "UI for computers" - if a human clicks on "delete user from group" and something makes a REST call to "delete user from group", they both take much the same route through the code, and end up removing the user in the same safe way that doesn't need any downtime.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG