Migrating users from local password to OAUTH2


I could not find a subtopic that fits this, so I am using the top-level. Hope that is alright.

We have a NC instance with two dozen users, being actively used. The users authenticate with username and password.

Is it possible to migrate this to OAUTH2 against Keycloak, keeping the user accounts? The user IDs are staying the same, it’s really just a swap of the authentication backend. Can this be done?