-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to change the username in admin user view or by themselfs #6984
Comments
I'm looking for this functionality, too. |
+1 |
+1 I have done a look to the database and I think a possible roadmap to add this could be:
|
Maybe a "less traumatic" approach would be adding a "username" field, and just change validation functions and user edit functions to use it. The big headache here would be how to build a upgrade path for existing installations. |
I’m closing this issue because it has been inactive for a few months. This probably means that it is not reproducible or it has been fixed in a newer version. If it’s an enhancement and hasn’t been taken on for so long, then it seems no one has the time to implement this. Please reopen if you still encounter this issue with the latest stable version and then please use the issue template. You can also contribute directly by providing a patch – see the developer manual. :) Thank you! |
Please reopen. The issue is still valid. |
+1 |
+1 URGENT... |
This is not only philosophical but a real necessity. |
Requires #21282 |
usernames can't be changed because they are used in a lot of places in the DB, filesystem, logfiles and external systems/references. This can't be done. The way to go is to see usernames as what they are. Internal references only that should be invisible to the users. |
Well, Usernames are not only visible in login. They are on the file system, they are spread tens of times in the database. Switching to email in the future will just prove as inefficient as currently since emails also carry information. If we had a real Database diagram with all indexes, that could help setup a 3rd party solution. I just spent a full week trying to reverse engineer the database to provide our admins a way to rename users. The decision has now been made to fully abandon the product whereas we were evaluating getting the I am the one recommending the product to our institution (4500 users) but have now been charged in finding Steve
|
again. Why do you insist to rename the username when no end-user actually sees it? This is an internal idea where a lot of things break if you play with it. Do you mixup displayname with username? |
When Maria A works with ownCloud, everything is in the Maria_A folder. She gets married, and is named Maria_B. The next time she logs in via LDAP, she has to type in Maria B as the username. She has no choice at all, Maria A doesn't work anymore. This will be seen as the first login and will therefore create a NEW EMPTY environment, in Maria_B. If, as a sysadmin, we move the files from Maria_A to Maria_B, and force a rescan, she will be able to see the files. The display name is not important, we don't care at all about it. Steve
|
As said before the solution for that is to enable login via email which can be changed anytime. |
As I said before, how to we switch 4500 existing accounts to email login without losing anything? And as I said before, what happens when the email changes? Isn't it just reproducing the same problem? How will the existing account be linked to the two email? Historically? If it works, then fine if we can move 4500 accounts.
|
login with email will be an option 9.1 automatically without the need to change anything. |
It's too late for us, but out of curiosity,
|
If you're using the LDAP backend, you have other issues. First, the login name is decoupled from the user name (and this is even so for local users, only it is not that radical). I hope changing the name in LDAP does not create a totally new record. The username for every LDAP user does not change once it is mapped. You can specify anything to login with, even including the email attribute. You can also specify a dedicated attribute to refer to the user folder. Usernames really should not be your problem at all. |
Obviously you would not need to login with the UUID. It's all just a misconfiguration. Getting assistance earlier, also from our sales team, would have helped to get a properly running instance up. Frankly, what a username is, what to login with, and what uuid settings mean is all written up in the docs. If anything is unclear, bug reports against the documentation are welcome. |
I would just like to add to this that the static, immutable user name is exposed to the user even if email login is used (at least through third party apps on 8.1). The shared calendars CalDav links look like
Users are hence reminded of the name of her/his divorced husband/wife when she/he wants to share a calendar with another user, even if she/he can login with her new email address. I don't know how this is handled in 9.x. But since calendars have, if I remember correctly, been moved into the core, if this behavior has not changed, then this is now even a problem with core Owncloud. |
I think we need to quite arguing. This is a very important feature. Right now, I want to change my ownCloud username. To do that, I'm going to have to create a new user and manually move all my content followed by "re-sharing." The real problem is, usernames are a identifier created by the user, almost as a nickname, to remove the need of typing in an email. Yes, both should be an option, but username's are not what the who referencing system should be based off of. The referencing and URL system, should use a unique Another way would be to update the references with the username, which should also be very simple if ownCloud properly users one central resource for such references. Overall, the task is very simple. Even updating plugins is simple. In fact, I will put some time into this myself when I get time. (if that ever happens.) This is ridiculously simple, come on guys. |
+1 Would be nice that the username could be changed. |
Unfortunately, to implement such a feature they would first have to hire a real DBA who knows what a database is. This database model is out of control, has been hastily cobbled together to meet the personal needs at the beginning by someone with no DB experience. As the solution grew bigger, it dragged that constrain along. |
@stevejordi I think that anybody could take the basic idea I mentioned earlier, and rework the database following along that. As I said before, this is a very simple problem. I am by no means a DBA, but from taking a look at the database, it may not have been designed the best and does need some work, but it's nothing major. It does the job, except for in this case. Making it work here is simple as well. Once again, if I ever get time, I'll try and do something about this 😃 |
What would have been nice would have been a DB diagram with primary and foreign keys. Steve
|
I would like to point out one place where the username is visible. If user foo shares a calendar named bar, then other users see that calendar as "bar(foo)". |
@stevejordi I think the app which parses the DB to change user names, should also have an option to send an email to all users who share things with the user which changes name (such as calendars). If I can be of any help to write such an app please ask. |
Any news on that one? Impatiently waiting for solution allowing to change user name. |
Luckily I do not use many functionalities apart from simple file storage, carddav and caldav - so hopefully simple copying files and export + import would suffice. |
Using account ids instead of user ids everywhere would allow this: #29503 |
+1 |
and here's an overview of some tables to look at in which the username would need to be changed if one would want to do this manually: #29993 the additional challenge is that if third party apps are using user ids as well they'd need to know as well that we want to rename so their own tables also get updated (hook?) In any case, it sounds like first moving to account id is the better solution. Once this is done, renaming a user id is only a matter of a single table. |
closing in favor of #29503 |
Hi,
Some users of my cloud are using their emailadress as usernames. Because some users changed their primary emailaccounts they want to change their username in owncloud also. Could you make it possible for the users to change their usernames - or that the admin can change it?
Thank you and keep up the great work!
The text was updated successfully, but these errors were encountered: