Grafana user origin switch from LDAP to OKTA

Hello

I have a Grafana deployed via HELM and using LDAP server for authentication. I want to switch to OKTA authentication. From what I have read once a user login via LDAP - Grafana registers this user in user table in MySQL db. Although I have enabled OKTA in my setup- the authentication fails as the user already exists.

The solution I found was to delete the users, and then log in via OKTA. This works, but it will lose the user history and other relations as after deletion, the user will have a new user ID.

I was hoping to find if there is a natural way(any configuration) to change the origin from LDAP to OKTA to avoid the user-id re-creation process.

Try to enable this config