Question about the compatibility of the edx-username-changer plugin with recent Open edX versions

Hello everyone

I’m currently having trouble changing usernames on our Open edX instance. We’ve been trying to use the edx-username-changer plugin to make these changes through the admin panel, but after following the setup instructions, we haven’t seen any changes in functionality.

We are running a newer version of Open edX(V17 Quince) with Django 4.2, and I am wondering if this plugin is compatible with the most recent versions of the platform. Has anyone managed to make it work in a similar environment?

We would prefer to avoid deleting users and causing them to lose progress. Any suggestions or experiences with this topic? Or is there an alternative way to update usernames in bulk without losing data?

I would really appreciate any advice!

Hi @jimenez,

As per the 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) did you enable the below ?

FEATURES:
  ...
  ...
  ENABLE_EDX_USERNAME_CHANGER: true
  ...

Yes, I added it in the lms.env.yml file, then I did a platform reboot(tutor images build openedx), but the changes are not showing

Hi @jimenez,

I tried on our forked version of Redwood. It is still working.

Kind regards, Ivo Branco.

Could you help me with the steps you followed? I still can’t make it work for me. Maybe I’m skipping a step

@jimenez

You should create a tutor plugin, for example features.yml like:

name: features
version: 0.1.0
patches:
  common-env-features: |
     ENABLE_EDX_USERNAME_CHANGER: true

Enable the plugin

tutor plugins install features

Save the configuration

tutor config save

Restart the LMS

tutor local restart lms

I’ve been trying these days, but I haven’t been successful, I’m working with version 17.0.5, I did all the steps, but I haven’t succeeded. I still don’t know if there’s anything before that isn’t activating

Hi @jimenez

I tried it in edx-platform master branch using tutor-nightly and it worked for me.

Can you make sure that the edx-username-changer package is installed properly ?
You can check it via tutor local run lms pip freeze | grep username
If its installed please verify your settings if they are properly set using
tutor local run lms ./manage.py lms print_setting FEATURES (it will print a lot of information) you can search for ENABLE_EDX_USERNAME_CHANGER