Moving to new active directory

I am attempting to move my nextcloud from one active directory to a new domain. I would like to be able to keep all of the files and sharing that was previously done. Is this possible? The account names will be the same for all users only the domain will change. Ie user@domain1 becomes user1@domain2. Is there anything i can do?

Hello,

Have you received some informations ?

I have a similar migration to do : migrate a ldap server to a Samba4 AD server. Users name are the sames.

I think we need to change the link between LDAP UUID and Nextcloud UUID in the database, but not sure.

Regards,
Jerome.