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

Key: JRA-4588
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Duplicate
Priority: Major Major
Assignee: Unassigned
Reporter: Jeff Turner [Atlassian]
Votes: 29
Watchers: 8
Operations

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

Rename users

Created: 17/Sep/04 02:42 AM   Updated: 17/Feb/08 11:01 PM
Component/s: Backend / Domain Model
Affects Version/s: 3.0 Pro Preview
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Duplicate
 
Reference
 

Participants: Adam Cameron, Adam Cameron, Anton Mazkovoi [Atlassian], Brian Nguyen, Jeff Turner [Atlassian], Robert Greig and Sulka Haro
Since last comment: 106 weeks ago
Resolution Date: 22/Dec/05 07:28 PM
Labels:


 Description  « Hide
Currently once a person's username is chosen (eg. 'jefft'), it can't be changed. We should write a 'rename user' function, accessible to administrators.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jeff Turner [Atlassian] - 17/Sep/04 02:43 AM
A workaround for this limitation is as follows:
  • Create an unzipped XML backup of the JIRA data
  • Download the XML locally, and do a search & replace on it, changing the old username to the new username.
  • Upload and import the modified XML

Robert Greig - 15/Nov/04 06:18 AM
One thing that is related to this is that you use the username as the foreign key to identify users (e.g. jbloggs) rather than the id (integer) from the userbase table.

I have written a script to migrate users by updating all the tables.

Even if you didn't want to rename users (something that is even more important when using external authentication and don't have control over usernames) I would argue that it is worth fixing the schema.

It isn't denormalised since you still need to do a join to get the user's "Full Name" for display purposes so this schema also means you take up a lot more space in the database without any performance benefit.


Jeff Turner [Atlassian] - 15/Nov/04 11:37 PM
Robert,

The schema is partially denormalized like this to handle external 'userbases' like LDAP, where the profile is stored outside the database, but the preferences are store in the JIRA database. Since there is potentially no ID to reference with a foreign key, we use the username instead.


Sulka Haro - 03/Jan/05 06:15 AM
Related / duplicate issues: JRA-1549 JRA-2207 JRA-4588 JRA-5460 CONF-2191

Please clean the issues a little and put the the user and group renaming on your road map - not having the renaming capability is a major pain.


Adam Cameron - 01/Aug/05 04:55 PM
Some questions relating to the LDAP comment:
1) What proportion of your client base hooks some other directory into JIRA as opposed to using JIRA's inbuilt one?
2) What sort of "LDAP userbases" don't have IDs, or don't have the flexibility to modify their schemas so that they do?
3) Even if this does happen, how common is it compared to someone getting married and changing their name?
4) Or someone spelling a user's name wrong when they were first created, but not finding out until after they have done some work?

Jeff Turner [Atlassian] - 02/Aug/05 12:11 AM
Adam,

> 1) What proportion of your client base hooks some other directory into JIRA as opposed to using JIRA's inbuilt one?

A 'significant minority'.

> 2) What sort of "LDAP userbases" don't have IDs, or don't have the flexibility to modify their schemas so that they do?
> 3) Even if this does happen, how common is it compared to someone getting married and changing their name?
> 4) Or someone spelling a user's name wrong when they were first created, but not finding out until after they have done some work?

I'm not sure you've understood the issue here - whether LDAP directories have IDs is irrelevant. It's simply a matter of prioritisation vs. the other popular issues:

http://jira.atlassian.com/browse/JRA?report=com.atlassian.jira.plugin.system.project:popularissues-panel


Brian Nguyen - 22/Dec/05 07:28 PM
Hi Everyone,

I'm just cleaning up this duplicate issue, and resolving it. So for those who have voted or are watching this issue, this issue is now being tracked at JRA-1549

Thanks,
Brian


Adam Cameron - 25/Apr/06 09:20 AM
Respectfully, Jeff, I think I understand the issue completely, and YOUR response seems to be missing the gist of the issue and the subsequent discussion.

I was asking questions specifically directed at your justification (which I do not think is really very good, to be honest) of why you've done the user schema the way you have.

Nowhere against this issue has anyone mentioned anything about priorities until you piped up with your somewhat non-sequitur response to my last three questions.


Anton Mazkovoi [Atlassian] - 02/May/06 02:36 AM
Adam,

I have added a comment to JRA-1549 regarding this improvement. We see that this issue is important - Jeff was trying to say that the most difficult thing we have to do is prioritise between improvements.

Thanks,
Anton