Hi,
We want to deactivate the users who are not logged into jira from past 30 days. Before deactivating them, we want send an alert mail.
Can anyone help me how to automate this?
Thanks
There isn’t a way to automate this at least OOTB. What I have done is to create an excel template, export the users, drop them into my template and then filter on the ‘haven’t logged in since’. Copy the users and drop into an email.
Can't we automate by using scriptrunner also?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
very possible. I haven't use the addon for some time so I can't try it out. Have you use the search bar above to see if others have solved this previously?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know of a way to accomplish this within Jira, but if you have database access, you can run the following query to identify such users:
SELECT display_name,email_address,FROM_UNIXTIME(left(attribute_value,char_length(attribute_value)-3)) AS 'last_successful_login'
FROM jira.cwd_user
LEFT JOIN jira.cwd_user_attributes on jira.cwd_user.ID = jira.cwd_user_attributes.user_id AND attribute_name = 'login.lastLoginMillis'
WHERE active = 1
HAVING last_successful_login < now() - interval 30 day
ORDER BY attribute_value DESC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.