Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use this script to automatically deactivate users:

  • Checkout the script from the github repository to $JIRAHOME/scripts:

    Code Block
    cd $JIRAHOME/scripts
    git clone https://github.com/redradishtech/jira-user-deactivator-groovy
    chgrp -R jira jira-user-deactivator-groovy    # Ensure Jira has read access.


  • If you first want to see what would  happen without deactivating anyone, edit deactivate-inactive-jira-users-nonsql.groovy  and comment out the updateUser line:

    Code Block
    // Comment out this line to do a dry run:
    // userService.updateUser(updateUserValidationResult)


  • Go to the ScriptRunner Jobs tab, e.g. by typing 'gg' then 'Script jobs':


    (ScriptRunner Jobs is just a nice UI around Jira Services. In the past one would have created a com.onresolve.jira.groovy.GroovyService Jira Service directly)

...