Ho to change Gitea user account type?

How do I change a Gitea user account type from external account source to local ? - Whenever I try to change to account type it fails and falls back to the external one with the error message: Non-local users are not allowed to change their username. (Using Gitea 1.22.0)


Details:

I need to migrate all users from an external authentication source (authelia) to another one (auhentik). Unfortunately the user names also changed. So I thought I could switch them to local account type temporarily, and link them afterwards with the new external one.

I’m pretty sure this already worked with gitea 1.16 / 1.18