How do I remove all Jira accounts that never logged in?
DB Solution acceptable, if it works with postgresql :D
Adminstration --> Users --> Check Login Details column
If the count of login details column is zero, user can be deleted by using the "Delete" option available in the "Operations" column
Er, see the discussion above...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try something like this:
select * from cwd_user where ID not in (select user_id from cwd_user_attributes where attribute_name = 'login.lastLoginMillis')
Never tried it myself but this should work because JIRA records last logged in time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Argh! No!
You could end up with swathes of completely broken projects if you do this. Jira can fail spectacularly if users are Report or Assignee on issues and you go and pull the users account out, and you'll get some really ugly problems with watchers, voters and other things too.
Note that it does NOT matter if they've never logged in - that does NOT stop them being used as assignee, reporter, watcher, user picker fields, groups or roles.
By all means use the SQL to find them, but do NOT delete them in the database. Use the API - via the UI or plugins, or (probably your best option) the Jira Command Line Interface (I'm pretty sure that does user deletes)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree. Find them, don't delete them yet!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oops, that looks like I was telling off Jobin, I didn't mean that at all! Just didn't want to let you run off and use SQL to update a Jira database.
Sorry Jobin!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hehe..No worries. I have seen that angry face before, when talking about database changes ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use SQL to get the accounts and export the result as CSV. After this run Jira CLI with action removeUserFromCSV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorin, I guess Nic's point is that these accounts might be used somewhere even if they are not logged in themselves. Like someone might have assigned an issue to one of them.
If you delete the account, it will break such issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not quite, as the CLI will remove accounts only if they do not have issues attached to them (owned or created by)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh really? I didnt know that!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The CLI goes in via the API and respects all the permissions and caveats in there - the delete user call does the same as someone clicking "delete" - it runs off and checks that the user isn't assignee or reporter on anything before it proceeds.
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.