Recover lost ldap Nextcloud Users (remnants)

Hi,

I migrated my nextcloud installation to another server. The users were authenticated against an AD server on the source machine, and were transferred to another a simple ldap directory on the new machine.

Now on the target machine all source users appears as “remnants” in nextcloud, probably because they all have a new ldap EntryUUID.

How do I reconcile those “lost” users with their new ldap accounts ? I tried occ files:transfer-ownership but I only get an error message : Unknown path provided: .

Thanks for helping.

Matt

Found the trick. Simply update the oc_ldap_user_mapping table by replacing the values contained in the fields owncloud_name and directory_uuid for the new (current ldap) entries by the old (former ldap) corresponding values (UUID’s).

1 Like