Nexcloud change ownership

If you want programaticaly change ownership of all files from one to user1 to user2

occ files:transfer-ownership user1 user2