Active Directory Domain Migration

Hello!
We’re in place to migrate our users on a new Active Directory domain and we’re trying to figure out how to migrate Nextcloud Users to the new domain.

Currently we have a LDAP Source per AD Domain.
I looked into the database and as far as I understand Nextcloud do the ldap/account mapping via oc_ldap_user_mapping and oc_accounts tables

There’s a built in tool in Nextcloud for remapping user association or would it be feasible with some SQL script?