History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRA-3774
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: MVS Vivekananda Das
Votes: 50
Watchers: 25
Operations

If you were logged in you would be able to see more operations.
JIRA

User Management: Disable user accounts

Created: 17/May/04 08:44 AM   Updated: Monday 12:54 AM
Component/s: User Management
Affects Version/s: 2.6.1 Pro
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File filter_invalid_emails.txt (1 kb)

Environment: Windows 2000
Issue Links:
Duplicate
Reference
 

Participants: David Armstrong, David Hoshaw, Doods Perea, Eric Bloch, Florin Ursu, Gerd Gueldenast, Hubert Chen, Jami Bradley, Jeff Turner [Atlassian], JIRA USER, Matt Doar, MVS Vivekananda Das, Neal Applebaum, Ray Oei [Furore], Richard THIBAULT and Rivermine Software
Since last comment: 11 weeks, 2 days ago
Support reference count: 13
Labels:


 Description  « Hide
The Users cannot be deleted as they are either raised issues or being assigned. I would suggest to have a option of disabling the user so that he cannot access the project.

I know there is a work around here by removing the user groups assigned to the user. But it would again take time to reassign the required groups. just by disabling the user i can avoid some time spend on reassigning. This will be further difficult if the user is assigned to too many projects at different levels.

Also i would like you to ask is there any work around for deleting the user permanently having the issues assigned to him earlier. Which should not change.

Vivek



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jeff Turner [Atlassian] - 17/May/04 07:14 PM
Giving this issue a more specific summary so it doesn't get lost.

Ray Oei [Furore] - 15/Jul/04 07:32 AM
Abillity to delete a user without losing (closed) issue history is important. Reassigning those would not be correct, and people do change jobs once in awhile...

Jeff Turner [Atlassian] - 14/Oct/04 08:43 AM
When a user is disabled, they should also cease being sent notification emails (something the delete-groups workaround doesn't address).

Gerd Gueldenast - 14/Oct/04 02:42 PM
Things disabled user should NOT be able to do:
  • Login
  • Be assigned an issue
  • Get Notifications

Things which should still work for disabled users:

  • be adressable for Filters, Searching, etc.

Richard THIBAULT - 27/Nov/04 02:07 PM
Very interesting feature for large companies that have a lot of people coming in and out.

Jami Bradley - 25/May/05 02:46 PM
Maybe something like archived versions would work well here. I would also like to be able to hide the disabled users in the user browser.

Rivermine Software - 06/Jul/05 04:46 PM
I would also like to be able to disable users so they don't show up in the drop down boxes. However, I don't want to delete the users for historical purposes. Also, deleting would require reassignment which I also don't want to do.

User archival would be great too so that user management is easier.


Matt Doar - 21/Oct/05 11:21 AM
This issue has been open for 3 years! (JIRA-931) Any sense yet of when it might appear, if ever?

I am now going to have to modify source code to stop emails being sent to departed users

~Matt


Neal Applebaum - 21/Oct/05 01:18 PM
Just wondering, Matt... if the email is non-existing, like nobody @ jira.com ... does your email application send errors somewhere? That's what I do for employees who have left. I never heard any complaints from I.T. about emails with invalid addresses.

Matt Doar - 21/Oct/05 04:13 PM
Responding to Neil: yes, our Exchange server will send mails to the bugs account about delayed sending of the email and then warnings appear every minute in the Jira catalina.out logfile. Example of such a warning:

catalina.out.1:36:2005-10-06 10:11:09,289 WARN [service.util.handler.NonQuotedCommentHandler] This user is not in jira so can not add a comment: System Administrator <postmaster@venturiwireless.com>

However, if you have the source code, here's a workaround to filter all users who's email address contains "example.com", the official bogus address.

From Atlassian Support (Brian Nguyen )
Sent: Thursday, October 20, 2005 8:57 PM

Hi Matt,

Unfortunately, modifying the source code is your only option at the
moment. To do this you should only need to modify the setRecipients
method of DefaultNotificationSchemeManager.java.

Matt's notes:

I've attached the modified file for Jira 3.1.1 Professional (the method is actually getRecipients). To compile it, you ought to use the full maven project environment, but I also found that this works:

ROOT_DIR=/home/jira/atlassian-jira-professional-3.1.1-standalone/atlassian-jira/WEB-INF

MYCLASSPATH=${ROOT_DIR}/classes:${ROOT_DIR}/lib/alt-0.07-jdk1.3.jar:${ROOT_DIR}/lib/propertyset-1.3.jar:${ROOT_DIR}/lib/oscore-2.2.4.jar:${ROOT_DIR}/lib/log4j-1.2.7.jar:${ROOT_DIR}/lib/javacvs-20040721-patched.jar:${ROOT_DIR}/lib/atlassian-core-2.2.9.jar:${ROOT_DIR}/lib/commons-lang-2.0.jar:${ROOT_DIR}/lib/ofbcore-entity-2.1.1-atlassian-06122004.jar:${ROOT_DIR}/lib/ofbcore-share-2.1.1.jar:${ROOT_DIR}/lib/atlassian-ofbiz-0.1.9.jar:${ROOT_DIR}/lib/osuser-1.0-dev-28Jul04.jar

  1. Compile the affected files
    cd <srcdir>/jira/src/java
    javac -classpath ${MYCLASSPATH} com/atlassian/jira/notification/DefaultNotificationSchemeManager.java

Matt Doar - 21/Oct/05 04:16 PM
Wow! I didn't know Jira doesn't like this construction: $ { FOO }, without the space. So remove the space where it is used below.

ROOT_DIR=/home/jira/atlassian-jira-professional-3.1.1-standalone/atlassian-jira/WEB-INF

MYCLASSPATH=$ { ROOT_DIR }/classes:$ { ROOT_DIR }/lib/alt-0.07-jdk1.3.jar:$ { ROOT_DIR }/lib/propertyset-1.3.jar:$ { ROOT_DIR }/lib/oscore-2.2.4.jar:$ { ROOT_DIR }/lib/log4j-1.2.7.jar:$ { ROOT_DIR }/lib/javacvs-20040721-patched.jar:$ { ROOT_DIR }/lib/atlassian-core-2.2.9.jar:$ { ROOT_DIR }/lib/commons-lang-2.0.jar:$ { ROOT_DIR }/lib/ofbcore-entity-2.1.1-atlassian-06122004.jar:$ { ROOT_DIR }/lib/ofbcore-share-2.1.1.jar:$ { ROOT_DIR }/lib/atlassian-ofbiz-0.1.9.jar:$ { ROOT_DIR }/lib/osuser-1.0-dev-28Jul04.jar

  1. Compile the affected files
    cd <srcdir>/jira/src/java
    javac -classpath $ { MYCLASSPATH } com/atlassian/jira/notification/DefaultNotificationSchemeManager.java

Neal Applebaum - 22/Oct/05 12:56 PM
Hey Matt - I see you've stumbled on to JRA-8175 here too.
Anyway, wouldn't it be easier to have I.T. give you a fake email address that you can use, that won't generate errors? It'll just build up in a mailbox that nobody accesses.

Hubert Chen - 13/Mar/06 11:58 PM
Things I'd like to see when an account is disabled(mostly what others have said):

Login disabled
Never send email to disabled account
Option when disabling account to bulk re-assign issues.
Option when disabling to remove user from all groups.
Account is still searchable(user picker can still find them, but only when searching)
Option to re-enable account.
xmlrpc or other mechanism to automate disabling(important when synching user management with external ldap/ad)


David Hoshaw - 27/Apr/06 01:05 PM
This will be a big issue for us also. I am in the process of importing a very large number (>150,000) of issues from 2 seperate repositories. In the process, about 2000 users will be created of which only 50-75 are still with the company. User management seems very difficult with that many users.

Jeff Turner [Atlassian] - 17/Jul/06 03:27 AM
Another use for a 'disable' flag would be in conjunction with the POP/IMAP mail handler, which creates users automatically for the 'From' address. These automatically created accounts have a random password set initially, but the reporter could click the 'Forgot email' link and access 'their' account. Sometimes this is not desirable, and users created automatically from email should be disabled by default.

Jeff Turner [Atlassian] - 08/Sep/06 03:23 AM
Another reason for having a 'disable' flag: When a user has subscriptions and has checked "Email zero results" when subscribing, then JIRA will continue to send them empty subscription emails.

David Armstrong - 29/Nov/06 08:39 PM
For me I'd like to see:
  • An option to disable users which in effect prohibits them to login, be assigned issues, receive notifications, subscriptions etc....
  • Emails sent to the JIRA system from the disabled user will not be processed by any JIRA services e.g. Comment Handler, Issue Creation via Email etc.
  • Filter options for the "User Browser" for "All Users", "Active Users", "Disabled Users" and even to filter by group or role (3.7).
  • The option to enable a disabled user.

Eric Bloch - 08/Nov/07 11:27 AM
I would like to be able to do something similar. Perhaps it is a permission? I would like the ability to disable certain users from being assigned/reassigned issues.

Neal Applebaum - 08/Nov/07 11:42 AM

I would like the ability to disable certain users from being assigned/reassigned issues

That's simple to do. Make sure your permission schemes do not have any assignable users permissions
set to either jira-users group or a single user. Then, make sure the users that should not be assigned issues
are not in any groups that allow issue assignment.


Doods Perea - 21/Feb/08 07:41 AM
Any news on this issue? The above issues (summarized by David Armstrong in his Nov 29, '06 comments) are legitimate JIRA issues that need to be addressed.

Further to that, we have JIRA version 3.12.1 running in one of our lab servers. After disabling the user (by removing him from all groups):

1. He still shows up in the Browse Users Select List (meaning he still can be assigned to an issue)
2. He still counts in the license (I know in Confluence a disabled user won't count in the license)

Thanks.


JIRA USER - 21/Feb/08 10:35 AM
I agree with Doods. and David...

especially when users/contractors get disabled (e.g. they left the company) they should not be counted in the license check


Matt Doar - 21/Feb/08 11:23 AM
User not in any groups still showing up as assignable? That would be a bug,
contact support

On Thu, Feb 21, 2008 at 5:42 AM, Doods Perea (JIRA) <jira@atlassian.com>


Doods Perea - 21/Feb/08 11:39 AM
Matt - well, we disabled the Assignee field in our JIRA and use a custom field. The disabed user is still in the selection for this custom field. He also appears in the Reporter dropdown list (which is a JIRA field).

Thanks


Florin Ursu - 01/May/08 01:13 PM
Here is what I just did and is as of now our "disabling process"

1. Change user password
2. Remove user from all groups
3. Change user's email address to an address we set up to accept mail but delete all incoming mail automatically in the exchange server. JIRA allows for multiple users to be registered with the same email address. That way all the mail goes in that dump address.

A feature that would disable users would be much more convenient, however.