Running this script from the Script Console to deactivate users that have been inactive for the set time period.
Over time employees move teams or move to different parts of the business, meaning they are taking up user licenses
that they no longer need. As a Jira Administrator, I want to keep my license cost under control and ensure I remove
inactive users from my Jira instance. I can use this script to deactivate users who have been inactive on the instance
for the period I have set (for example, 30 days).
Good to know
You can set the numOfDays value with the number of days that you can limit it.