The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Suspend Access for Jira Cloud Users in Bulk Using Python

Administator
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Jovin
Community Champion
September 2, 2024

Hey @Administator 

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

Administator
Contributor
September 2, 2024

Hi @Jovin ,

Thanks for your reply.

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

Jovin
Community Champion
September 3, 2024

No worries @Administator 

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.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events