Migrate users from local to LDAP

Hi,
When I first installed Nextcloud, I had a few users using it. Now the database is growing and I would like to migrate my users from local to our MSAD servers. Is there a way to migrate them without losing their data/profiles?

Thanks

I am planning to attempt a similar process (only with openLDAP rather than AD). Did you figure out a way to get this done?