Changing the username in Joomla causes a duplicate in Moodle

  • Rahul Paul
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 1 month ago #1 by Rahul Paul
I am using Joomdle 0.82, Joomla 2.5.4 and Moodle 2.3.

If I change an existing user's username in Joomla's backend, a new user record is created in Moodle which is the exact duplicate of the original user record but with the changed username. I would have thought that the username for that user should change in Moodle as well but now I am getting 2 records for the same user with different usernames.

Is this expected behavior?

Thanks for your help.

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #2 by Antonio Durán
Yes, this is expected behaviour.

As Joomdle uses username to link users in Joomla and Moodle, changing the username looses that link, and so what you say will happen.

A way to be able to change usernames is:
- Change username in Moodle first (having sysnc users to joomla as Off in Joomdle config in Moodle)
- Change username in Joomla. As the new username is already present in Moodle, the accounts will be linked again.

Please Log in or Create an account to join the conversation.

  • Rahul Paul
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 1 month ago #3 by Rahul Paul
Thanks for your prompt reply and a great extension.

Please Log in or Create an account to join the conversation.