Bulk User Deactivation in Jira

Hi,

I recently got an update from Atlassian which says that using the below query bulk user deactivation is possible in Jira.

update cwd_user u set active = 0 WHERE u.id in ("a1234","b1234","c1234",.........)

I would just like to confirm if this query can be directly used to bulk update the users for purpose of deactivation because we have the actual username list and would just like them all to be deactivated.

I have around 1000 users to be deactivated in an excel sheet and I hope using excel formula if I enclose all such 1000 usernames within double quotes and create comma separated list and directly place them in update query as above then that should work.

Please let me know if this correct or if not then what else needs to be done.

 

Thanks,

Ashley

 

1 answer

1 accepted

1 vote

Hi Ashley,

 

Yes, that query should work to bulk disable those users.

Hi Benito, Thanks for the quick response. I would just like to know one more thing. Do I need to enclose usernames in double quotes? Is everything I mentioned as part of update query (I mean all parameters) correct? Thanks, Ashley

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

565 views 6 12
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