This script creates a table containing all currently registered users of your Jira instance, along with their status as an active user,
an inactive user, or a user who has never logged in. It also provides the last login date and time for any active users.
The script saves the table in CSV format, using the file path and file name that you specify.
It then creates an email with a subject that you specify, and sends this email to the email address(es) you specify.
This email contains the user table in the body of the email, as well as attaching the CSV file.
I am a Jira Administrator, and I want to gather a list of active, inactive, and never before logged-in user(s) on a monthly basis.
To achieve this, I can use ScriptRunner's Custom Job to execute this script on a monthly schedule.