Editing of current usernames

Hi everyone

I’m looking for some advice please, with regard to changing usernames. Many of my users have gone and signed up with ugly usernames so I want to change them to be more uniform with the company standards like “name.surname”

As far as I can tell it is not possible (at least in a default setup) to change the usernames, but I found this here (GitHub - mitodl/edx-username-changer: A plugin to enable update usernames through admin panel in Open edX (and other apps that log into Open edX via OAuth)) and was wondering if anyone had any experience setting it up? I followed all the instructions on the page but it doesn’t result in any changes to the functionality.

I’d prefer not to have to delete and recreate 200+ users and have them lose their progress.
If it’s possible to do this with simple manage.py commands then I’d be happy to try that instead.

I see here (edx-platform/openedx/core/djangoapps/user_api/accounts/views.py at master · openedx/edx-platform · GitHub) that there is a function “_replace_username_for_all_models” does this have anything to do with changing username? Not sure how to use that…

1 Like