Transfer non-ldap account to ldap account with shares

,

Hi,
I have an instance in owncloud with some non-ldap users and a bunch of ldap users. I would like to migrate non-ldap user ownership to ldap, but occ:transfer migrates only files. It does not migrate shares, i.e. if some file was shared with other account, this share seems lost.

Is there a way to convert non-ldap account to ldap account?

Easy as pie:

  1. Create new users in LDAP
  2. Run an occ user:sync .. to import the new users into the ownCloud backend
  3. Run occ files:transfer-ownership command to transfer files and shares from the old users to the new users.
  4. Make sure data and shares have been successfully moved, before
  5. Remove old users.
1 Like