[xwiki-users] Ability to rename users?
Hi, I've realised that for my project it would be ideal if users had the ability to change their login names. You know the kind of thing, you register on the site as crazygirlLOL and then your boss shows up and you want to be renamed as maryc. I've had a look around and can't see that XWiki supports this. I bet it'd be a pain to implement, changing all the history and group memberships and permissions and whatnot. But if there's nothing out of the box it looks like I'll have to write this feature myself. Any suggestions? P.S., I saw a reference in one of the macros to allowing user pages to exist in spaces other than XWiki in the future. That would be useful too, and probably touches much of the same code.
On Tue, Jan 22, 2013 at 3:44 AM, <xwiki.mexon@spamgourmet.com> wrote:
Hi,
I've realised that for my project it would be ideal if users had the ability to change their login names. You know the kind of thing, you register on the site as crazygirlLOL and then your boss shows up and you want to be renamed as maryc.
I've had a look around and can't see that XWiki supports this. I bet it'd be a pain to implement, changing all the history and group memberships and permissions and whatnot. But if there's nothing out of the box it looks like I'll have to write this feature myself.
Any suggestions?
Indeed this does not exists out of the box. There is two main way I would say (true for renamed groups too): * do it at the same level than the code cleaning groups and rights when you delete a user, main issue is that we need to introduce a DocumentRenamedEvent first (right now you get a deleted and a created document events when renaming user). The user would just rename its profile page name. * introduce a special action accessible from the user/group profile to rename a user In both cases it's a good idea to look at how https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... find all users/groups to cleanup since it would be pretty much the same code but with a rename instead of a remove. Additionally I think I think RightsManagerListener only look at current wiki right now but it should probably look at all wikis when cleaning/renaming a global user/group.
P.S., I saw a reference in one of the macros to allowing user pages to exist in spaces other than XWiki in the future. That would be useful too, and probably touches much of the same code.
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On 2013-01-22 16:18 , Thomas Mortagne - thomas.mortagne@xwiki.com wrote:
Indeed this does not exists out of the box.
There is two main way I would say (true for renamed groups too): * do it at the same level than the code cleaning groups and rights when you delete a user, main issue is that we need to introduce a DocumentRenamedEvent first (right now you get a deleted and a created document events when renaming user). The user would just rename its profile page name. * introduce a special action accessible from the user/group profile to rename a user
In both cases it's a good idea to look at how https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... find all users/groups to cleanup since it would be pretty much the same code but with a rename instead of a remove. Additionally I think I think RightsManagerListener only look at current wiki right now but it should probably look at all wikis when cleaning/renaming a global user/group.
That's very helpful, thanks. This isn't something I need to tackle straight away, I just need to have a plausible story for what I'll do when it hits.
That's very helpful, thanks. This isn't something I need to tackle straight away,
I just need to have a plausible story for what I'll do when it hits
xwiki.mexon wrote * * You mean, when your boss shows up and asks you: "Why you have named yourself "crazygirlLOL" on the XWiki? " ;-) -- View this message in context: http://xwiki.475771.n2.nabble.com/Ability-to-rename-users-tp7583439p7583475.... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Hamster -
Thomas Mortagne -
xwiki.mexon@spamgourmet.com