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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,142
Community Members
 
Community Events
176
Community Groups

How to develop a script to disables withdrawn employees' Jira accounts

Because of the way our Jira is configured to only create a user account when an LDAP user first signs in, when an employee leaves, the account in Jira stays active until a Jira admin actually goes in to disable the user.

 

We need a script that iterates over the list of Jira LDAP users, performs an LDAP lookup to determine if each employee is active, and disable the Jira account if the employee is withdrawn.  The script should notify to a group if it fails to disable the Jira account for any reason such as when the account is a lead of one or more project(s).

 

The script should be configured to run regularly (e.g. cron job, jenkins job).

1 answer

0 votes
Will C Rising Star Nov 09, 2022

Why don't you set jira up as a connector to create users from your directory and then mark them as disabled once the external directory marks them as disabled? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events