Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Suspend Access for Jira Cloud Users in Bulk Using Python

TECH JEDI September 2, 2024

Hello Jira Community,

I'm looking for guidance on how to suspend access for multiple Jira Cloud users in bulk using Python. Managing user access individually can be time-consuming, especially when dealing with a large number of users. Automating this process would greatly enhance efficiency and reduce manual workload.

I'm interested in any available Python scripts, Jira Cloud REST API methods, or Atlassian Python libraries that could help achieve this. Additionally, if there are any best practices, permission requirements, or potential pitfalls to be aware of when suspending user access in bulk, I'd appreciate insights on those as well.

If anyone has experience with automating user management tasks in Jira Cloud or has any sample code or detailed steps to share, it would be immensely helpful.

Thank you in advance for your support!

1 answer

0 votes
Jovin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 2, 2024

Hey @TECH JEDI 

If you're not 100% set on using Python you can achieve this through Automation Rules and tickets in Jira.

  1. Export the list of users to suspend/deactivate
  2. Create stories for each user, I set it up like this:
    1. Summary: Atlassian ID
    2. Description: Email (just so I know who it was)
  3. Create an automation rule like the below, using the correct API endpoint, when you run  this manually it will work for up to 50 users at a time.

I have the Trigger have a JQL specification such as below, where UD is the key of the project:

project = UD AND status = "Backlog"

AR 1.pngAR 2.png

TECH JEDI September 2, 2024

Hi @Jovin ,

Thanks for your reply.

This is for inside the Jira. I want automation script.

Jovin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 3, 2024

No worries @TECH JEDI 

This just allows you to do it automatically as well without relying on external programming/scripting. You can bulk import the User IDs too through the CSV Import feature :) 

karthikeyan
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!
September 3, 2024

I don't want automate the process. i have some user list in csv file. i want to suspend access those who are present in csv file.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events